第一篇:java面向?qū)ο蟪绦蛟O(shè)計(jì)教案
武漢大學(xué)珞珈學(xué)院 系/教研室 Java 面 向 對(duì) 象 程 序 設(shè) 計(jì) 課 教 案
主講教師:熊春秀 編寫時(shí)間:2011-4-30
第一章:概述
第 1、2 節(jié):面向?qū)ο蟮幕靖拍?、面向?qū)ο蟪绦蛟O(shè)計(jì)概述 授課時(shí)間:2011-2-
22、23
計(jì)劃學(xué)時(shí)數(shù):1 教學(xué)任務(wù)與目的:讓學(xué)生理解面向?qū)ο蟮幕靖拍?教學(xué)重點(diǎn):掌握面向?qū)ο蟮幕靖拍?教學(xué)難點(diǎn):理解面向?qū)ο蟪绦蛟O(shè)計(jì)的方法 教學(xué)方法:多媒體+板書 參考書目:《面向?qū)ο蟪绦蛟O(shè)計(jì)導(dǎo)論》,[美]C.Thomas wu著,電子工業(yè)出版社 專業(yè)詞匯:Java虛擬機(jī)、Applet程序 備注
第二章:Java特點(diǎn)及運(yùn)行環(huán)境
第 1、2、3 節(jié):Java語言特點(diǎn)、Java應(yīng)用程序及運(yùn)行環(huán)境、Java Applet程序及運(yùn)行環(huán)境 授課時(shí)間:2011-2-
22、23
計(jì)劃學(xué)時(shí)數(shù):3 教學(xué)任務(wù)與目的:讓學(xué)生學(xué)會(huì)JDK的下載、安裝與環(huán)境配置。教學(xué)重點(diǎn):掌握編譯和執(zhí)行Java程序的基本步驟
教學(xué)難點(diǎn):理解Java程序的入口并能夠通過命令行傳遞參數(shù) 教學(xué)方法:多媒體+板書 參考書目:《面向?qū)ο蟪绦蛟O(shè)計(jì)導(dǎo)論》,[美]C.Thomas wu著,電子工業(yè)出版社 專業(yè)詞匯:JDK、lib、bin 備注 第三章:Java語言基礎(chǔ)
第 1、2 節(jié):Java程序的構(gòu)成、數(shù)據(jù)類型、表達(dá)式以及流程控制語句 授課時(shí)間:2011-3-
1、2
計(jì)劃學(xué)時(shí)數(shù):3 教學(xué)任務(wù)與目的:讓學(xué)生學(xué)會(huì)Java基本的數(shù)據(jù)類型和表示方法、數(shù)值類型的運(yùn)算、邏輯運(yùn)算和比較、條件執(zhí)行語句(包括三種條件語句和switch語句)、循環(huán)控制語句(包括for、while、do while循環(huán)及相應(yīng)的輔助語句)、字符串類String和BufferString以及數(shù)組的聲明及使用。
教學(xué)重點(diǎn):掌握J(rèn)ava基本的數(shù)據(jù)類型和表示方法
教學(xué)難點(diǎn):理解Java程序的循環(huán)控制語句(包括for、while、do while循環(huán)及相應(yīng)的輔助語句)
教學(xué)方法:多媒體+板書 參考書目:《Java語言與面向?qū)ο蟪绦蛟O(shè)計(jì)》,印旻編著,清華大學(xué)出版社 專業(yè)詞匯:變量、數(shù)據(jù)類型、循環(huán)控制語句 備注 第三章:Java語言基礎(chǔ) 第 3 節(jié):Java與C比較
授課時(shí)間:2011-3-
8、9
計(jì)劃學(xué)時(shí)數(shù):3 教學(xué)任務(wù)與目的:讓學(xué)生在C語言的基本上進(jìn)一步學(xué)習(xí)Java語言。教學(xué)重點(diǎn):掌握J(rèn)ava語言與C語言的區(qū)別與聯(lián)系。教學(xué)難點(diǎn):理解Java語言在C語言上的改進(jìn)。教學(xué)方法:多媒體+板書 參考書目:《Java2參考大全(第四版)》,[美]Herbert Schildt著,張玉清、吳浦峰、尚勇等譯,清華大學(xué)出版社。專業(yè)詞匯:Java、C 備注 第四章:抽象、封裝與類
第 1 節(jié):抽象、封裝與Java類的概念
授課時(shí)間:2011-3-
15、16
計(jì)劃學(xué)時(shí)數(shù):3 教學(xué)任務(wù)與目的:讓學(xué)生學(xué)會(huì)面向?qū)ο蟮幕咎卣?、掌握如何定義一個(gè)類以及如何生成對(duì)象、深入掌握方法的定義及技巧、深入掌握類的訪問權(quán)限與封裝機(jī)制、深入掌握包的定義與包的使用方法。
教學(xué)重點(diǎn):掌握類的定義與對(duì)象的生成。教學(xué)難點(diǎn):理解類的抽象與封裝機(jī)制。教學(xué)方法:多媒體+板書 參考書目:《Java2 實(shí)用教程》,耿祥義、張躍平編著,清華大學(xué)出版社。專業(yè)詞匯:抽象、封裝、類 備注 第四章:抽象、封裝與類 第 2 節(jié):系統(tǒng)定義的類
授課時(shí)間:2011-3-
22、23
計(jì)劃學(xué)時(shí)數(shù):3 教學(xué)任務(wù)與目的:讓學(xué)生學(xué)會(huì)使用系統(tǒng)定義的類,并掌握與用戶自定義類的區(qū)別。教學(xué)重點(diǎn):掌握如何定義所需要的類。
教學(xué)難點(diǎn):熟悉Java平臺(tái)定義了哪些經(jīng)常要用到、而且滿足我們需要的類。教學(xué)方法:多媒體+板書 參考書目:《Java2 實(shí)用教程》,耿祥義、張躍平編著,清華大學(xué)出版社。專業(yè)詞匯:系統(tǒng)定義的類、用戶自定義類 備注 第四章:抽象、封裝與類
第 3 節(jié):類、域和方法的修飾符
授課時(shí)間:2011-3-
29、30
計(jì)劃學(xué)時(shí)數(shù):3 教學(xué)任務(wù)與目的:讓學(xué)生學(xué)會(huì)類的聲明。
教學(xué)重點(diǎn):掌握如何定義類的修飾和方法的修飾符。教學(xué)難點(diǎn):熟悉類的變量的定義與使用方法。教學(xué)方法:多媒體+板書 參考書目:《Java2 實(shí)用教程》,耿祥義、張躍平編著,清華大學(xué)出版社。專業(yè)詞匯:成員變量、類變量、成員方法、類方法 備注 第五章:繼承與多態(tài)
第 1、2 節(jié):Java的繼承與派生、域的繼承與隱藏 授課時(shí)間:2011-4-
5、6
計(jì)劃學(xué)時(shí)數(shù):3 教學(xué)任務(wù)與目的:讓學(xué)生全面掌握面向?qū)ο蟮幕咎卣?、掌握如何使用繼承性來到達(dá)軟件的重用、深入掌握繼承過程中域的隱藏和方法的覆蓋技巧。教學(xué)重點(diǎn):掌握如何使用繼承性來到達(dá)軟件的重用。教學(xué)難點(diǎn):熟悉繼承過程中域的隱藏和方法的覆蓋技巧。教學(xué)方法:多媒體+板書 參考書目:《Java2 實(shí)用教程》,耿祥義、張躍平編著,清華大學(xué)出版社。專業(yè)詞匯:繼承派生、域、隱藏 備注 第五章:繼承與多態(tài)
第 3、4 節(jié):方法的繼承、重載與覆蓋、this與super、構(gòu)造函數(shù)的繼承與重載 授課時(shí)間:2011-4-
12、13
計(jì)劃學(xué)時(shí)數(shù):3 教學(xué)任務(wù)與目的:讓學(xué)生通過繼承可以更有效地組織程序結(jié)構(gòu),明確類之間的關(guān)系,并充分利用已有的類來創(chuàng)建新類,通過繼承可以實(shí)現(xiàn)代碼的重用,以完成更復(fù)雜的設(shè)計(jì)、開發(fā)。教學(xué)重點(diǎn):掌握類的重載與覆蓋的區(qū)別與聯(lián)系。教學(xué)難點(diǎn):熟悉類的重載與覆蓋使用方法。教學(xué)方法:多媒體+板書 參考書目:《Java語言與面向?qū)ο蟪绦蛟O(shè)計(jì)》,印旻編著,清華大學(xué)出版社。專業(yè)詞匯:繼承、重載、覆蓋、this、super 備注 第五章:繼承與多態(tài)
第 5、6 節(jié):多態(tài)性的實(shí)現(xiàn)、接口聲明與實(shí)現(xiàn) 授課時(shí)間:2011-4-
19、20
計(jì)劃學(xué)時(shí)數(shù):3 教學(xué)任務(wù)與目的:讓學(xué)生深入掌握抽象類和抽象方法的定義,掌握多態(tài)通過統(tǒng)一多個(gè)相關(guān)類的對(duì)外接口,在運(yùn)行時(shí)根據(jù)不同的情況執(zhí)行不同的操作,提高類的抽象度和靈活性,深入掌握接口的定義和使用技巧。
教學(xué)重點(diǎn):熟悉多態(tài)性實(shí)現(xiàn)的兩種方式以及接口的實(shí)現(xiàn)。教學(xué)難點(diǎn):熟悉多態(tài)性與接口的實(shí)現(xiàn)方法。教學(xué)方法:多媒體+板書 參考書目:《Java語言與面向?qū)ο蟪绦蛟O(shè)計(jì)》,印旻編著,清華大學(xué)出版社。專業(yè)詞匯:多態(tài)性、接口 備注 第六章:工具類與算法
第 1、2 節(jié):語言基礎(chǔ)類庫(kù)、Applet類與小程序的基本原理 授課時(shí)間:2011-4-
26、27
計(jì)劃學(xué)時(shí)數(shù):3 教學(xué)任務(wù)與目的:深入了解Applet生命周期的主要方法和特點(diǎn)、熟練掌握Applet程序的編寫方法、深入了解Applet的安全機(jī)制及其合理運(yùn)用。教學(xué)重點(diǎn):熟練掌握Applet程序的編寫方法。
教學(xué)難點(diǎn):深入了解Applet的安全機(jī)制及其合理運(yùn)用。教學(xué)方法:多媒體+板書 參考書目:《Java語言與面向?qū)ο蟪绦蛟O(shè)計(jì)》,印旻編著,清華大學(xué)出版社。專業(yè)詞匯:Applet、生命周期 備注 第六章:工具類與算法
第 3、4 節(jié):數(shù)組、字符串、常用算法
授課時(shí)間:2011-5-
3、4
計(jì)劃學(xué)時(shí)數(shù):3 教學(xué)任務(wù)與目的:讓學(xué)生學(xué)會(huì)字符串類String和BufferString、數(shù)組的聲明及使用。教學(xué)重點(diǎn):熟練掌握字符串與數(shù)組的使用方法。教學(xué)難點(diǎn):深入了解數(shù)組的使用方法。教學(xué)方法:多媒體+板書 參考書目:《Java語言與面向?qū)ο蟪绦蛟O(shè)計(jì)》,印旻編著,清華大學(xué)出版社。專業(yè)詞匯:數(shù)組、字符串 備注 第七章:用戶圖形界面的設(shè)計(jì)
第 1、2 節(jié):用戶自定義成分、事件驅(qū)動(dòng)設(shè)計(jì) 授課時(shí)間:2011-5-
10、11
計(jì)劃學(xué)時(shí)數(shù):3 教學(xué)任務(wù)與目的:讓學(xué)生學(xué)會(huì)使用面向?qū)ο蟮某绦蛟O(shè)計(jì)方法構(gòu)建圖形用戶界面、深入了解抽象窗口工具包(AWT)、掌握事件處理基本原理和方法。教學(xué)重點(diǎn):熟練掌握?qǐng)D形用戶界面的開發(fā)方法。教學(xué)難點(diǎn):深入了解圖形界面的各種事件。教學(xué)方法:多媒體+板書 參考書目:《Java語言與面向?qū)ο蟪绦蛟O(shè)計(jì)》,印旻編著,清華大學(xué)出版社。專業(yè)詞匯:AWT、GUI 備注 第七章:用戶圖形界面的設(shè)計(jì)
第 3、4 節(jié):GUI對(duì)象,包括:按鈕、文本框、鼠標(biāo)、鍵盤等事件的處理、布局設(shè)計(jì) 授課時(shí)間:2011-5-
17、18
計(jì)劃學(xué)時(shí)數(shù):3 教學(xué)任務(wù)與目的:讓學(xué)生深入了解GUI構(gòu)件及掌握布局控制方法、熟練掌握菜單和對(duì)話框、掌握簡(jiǎn)單繪圖方法。
教學(xué)重點(diǎn):熟練使用Java語言提供的布局管理器來管理組件在容器中的布局。教學(xué)難點(diǎn):深入了解組件在程序中安排中位置和大小使用方法。教學(xué)方法:多媒體+板書 參考書目:《Java語言與面向?qū)ο蟪绦蛟O(shè)計(jì)》,印旻編著,清華大學(xué)出版社。專業(yè)詞匯:布局管理器、容器 備注 第八章:Java高級(jí)編程
第 1、2、3節(jié):異常處理、多線程機(jī)制、Java程序?qū)W(wǎng)上資源的訪問 授課時(shí)間:2011-5-
24、25
計(jì)劃學(xué)時(shí)數(shù):3 教學(xué)任務(wù)與目的:讓學(xué)生深入理解多線程的基本概念、熟練掌握創(chuàng)建線程的兩種基本方法、熟練處理線程的同步問題和死鎖問題、深入理解異常的基本概念、熟悉和掌握J(rèn)ava平臺(tái)定義異常類、熟練掌握創(chuàng)建自定義異常類的方法。教學(xué)重點(diǎn):熟練掌握創(chuàng)建線程的兩種基本方法。教學(xué)難點(diǎn):深入了解線程的同步問題和死鎖問題。教學(xué)方法:多媒體+板書 參考書目:《Java語言與面向?qū)ο蟪绦蛟O(shè)計(jì)》,印旻編著,清華大學(xué)出版社。專業(yè)詞匯:同步、死鎖、多線程、異常
第二篇:Java面向?qū)ο蟪绦蛟O(shè)計(jì)教學(xué)大綱
Java面向?qū)ο蟪绦蛟O(shè)計(jì)課程教學(xué)大綱
Object-Oriented Programming with Java Syllabus
課程名稱 課程類別 建設(shè)單位/教研室 前后課程 適用專業(yè)、層次 Java面向?qū)ο蟪绦蛟O(shè)課程英文名Object-Oriented Programming with Java 計(jì) 稱 專業(yè)必修課 學(xué)分/學(xué)時(shí) 4.0/42+42 計(jì)算機(jī)系/軟件工程教研室 考核方式 考試 C語言程序設(shè)計(jì)
軟件工程、計(jì)算機(jī)科學(xué)與技術(shù)、網(wǎng)絡(luò)工程
Upon completion of this course, students should master the basic knowledge of Java language, understand and grasp the basic object-oriented programming design ideas and skillfully use Java language to write, compile and debug programs.These would lay a good foundation for students on independently finish the work of program development with Java in the future.教學(xué)目的
The emphasis: 1.The origin of Java, Why should we learn Java language, Java cross-platform principle analysis(JVM)and Java Environment variable configuration.2.Data and Expressions: including Character Strings, Variables and Assignment, Primitive Data Types, Expressions, Data Conversion, Interactive Programs.3.Oriented object programming ideas: including Class, Object, Variables, Methods, Encapsulation, Inheritance, Polymorphism, Interface and so on.4.Java statements: including conditionals and loops statements.5.Arrays: Declaring and using one-dimensional arrays and two-dimensional arrays.6.Exceptions: including exception handling, uncaught exceptions, and try-catch statement and so on.7.GUI: including event handling and graphics user interface.The difficulty:
Object-oriented concept and idea, establishing application model and algorithm of description, the algorithm optimization of program and so on.教材和主要參考資料: Text and references Text :
John Lewis “Java程序設(shè)計(jì)教程(第六版)英文版” 電子工業(yè)出版社 ISBN-978-7-121-08808-7 References:
1.《Java編程思想(英文版 第3版)》,(美)Bruce Eckel編,機(jī)械工業(yè)出版社出版社; 2.Java程序設(shè)計(jì)基礎(chǔ)》,(美)Gary J.Bronson編, 趙德奎 林仕平譯,北京大學(xué)出版社。
3.Cay S.Horstmann, Gary Cornell.Java 2核心技術(shù) 卷I:基礎(chǔ)知識(shí).機(jī)械工業(yè)出版社, 2001.4.Cay S.Horstmann, Gary Cornell.Java 2核心技術(shù) 卷II:高級(jí)特性.機(jī)械工業(yè)出版社, 2001.教學(xué)內(nèi)容 學(xué)時(shí) 基本要求
按章、節(jié)具體列出
教學(xué)內(nèi)容 Topic 具體列出教學(xué)的基本要求,如了解、理解、掌握及應(yīng)用等。
By the end of chapter ,students should understand Chapter 1 Introduction
Chapter 2 Data and ExpressionsChapter 3 Using Classes and Objects Chapter 4 Writing Classes 3+3 To be able to have a fundamental understanding of software role in a computer system.? To know components of a computer ? To understand how those components interact ? To grasp how computers store and manipulate information ? To know how computers are connected into networks to share information.? To profile programming and programming languages ? To profile an introduction to Java ? To grasp object-oriented concepts 3+6 Explore some of the basic types of data used in a Java program and the use of expressions to perform calculations.? To understand character strings, concatenation, and escape sequences.? To grasp the declaration and use of variables.? To be familiar with Java primitive data types.? To understand expressions and operator precedence.? To grasp the syntax and processing of expressions.? To understand the types of data conversions and the mechanisms for
accomplishing them.? To know how to create interactive programs.? To understand the basic graphic concepts and the techniques for drawing
shapes.? To know the concept of a Java applet.4+4 Use the predefined classes in the Java class library that are provided to us to make the process of writing programs easier.? To grasp the creation of objects and the use of object reference variables.? To be familiar with the services provided by the String class.? To know how the java standard class library is organized into packages.? To be familiar with the services provided by the Random and Math class.? To grasp ways to format output using the NumberFormat and DecimalFormat
classes.? To be familiar with enumerated types.? To understand wrapper classes and the concept of autoboxing.? To understand components and containers used in graphics user interfaces.? To know a label component and the use of images.6+6 We've been using predefined classes.Now we will learn to write our own classes to define objects.? To grasp the structure and content of a class definition.? To understand the concept of object state using instance data.? To know the effect of visibility modifiers on methods and data.? To grasp the structure of a method definition, including parameters and return
values.? To grasp the structure and purpose of a constructor.? To grasp the creation of graphical objects.? To understand the concepts needed to create an interactive graphical user
interface.Chapter 5 Conditionals and Loops
Chapter 6 OBJECT-ORIENTED DESIGN
Chapter 7 Arrays
Chapter 8 Inheritance ? To know some basic GUI components and events.4+4 Now we will examine programming statements that allow us to make decisions and repeat processing steps in a loop.? To know the flow of control through a method.? To understand Boolean expressions that can be used to make decisions.? To grasp to perform basic decision making using if and switch statements.? To understand issues pertaining to the comparison of certain types of data.? To grasp familiarly to execute statements repetitively using while, do, and for
loops.? To understand the concept of an iterator object and use one to read a text file.? To know how to draw with the aid of conditionals and loops.? To know more GUI components and events.4+4 Now we can extend our discussion of the design of classes and objects ? To know key issues related to the design of object-oriented software.? To techniques for identifying the classes and objects needed in a program.? To understand the relationships among classes.? To understand the effect on the static modifier on methods and data.? To grasp the creation of a formal object interface.? Further grasp the definition of enumerated type classes.? To grasp issues related to the design of methods, including method
overloading.? To know issues related to the design of graphics user interface, including
layout managers.6+3 Arrays are objects that help us organize large amounts of information ? Define and use arrays for basic data organization.? To know bounds checking and techniques for managing capacity.? To learn to compare the issues related to arrays as objects and arrays of
objects.? To grasp the use of command-line arguments.? To grasp the syntax and use of variable-length parameter lists.? To be familiar with the creation and use of multidimensional arrays.? To be familiar with the ArrayList class and its generic parameter.? To know more mouse and keyboard events.6+6 Inheritance is a fundamental object-oriented design technique used to create and organize reusable classes.? To know the derivation of new classes from existing ones.? To understand the concept and purpose of method overriding.? To grasp the design of class hierarchies.? To grasp the issue of visibility as it relates to inheritance.? To have the ability to derive on interface from another.? To grasp object-oriented design in the context of inheritance.? To know the inheritance structure for GUI components.? To explore the creation of listeners by extending adaptor classes.Chapter 9 Polymorphism 3+3 Chapter 10 Exceptions 3+3 有關(guān)說明:
擬稿(簽名):謝彥麒 Polymorphism is an object-oriented concept that allows us to create versatile software designs ? To understand polymorphism and explore its benefits.? To understand the concept of dynamic binding.? To grasp to use inheritance relationships to create polymorphic references.? To grasp to use interfaces to create polymorphic references.? To grasp sorting and searching using polymorphic implementations.? To be familiar with object-oriented design in the context of polymorphism.? To know the processing of events as an example of polymorphism.? To know more GUI components.Exception handling is an important aspect of object-oriented design ? To know the purpose of exceptions.? To know exception messages and the call stack trace.?
To be familiar with the usage of the try-catch statement for handling exception.? To understand the concept of exception propagation.?
To be familiar with the exception class hierarchy in the Java standard class library.? To be familiar with I/O exception and the ability to write text files.? To know how to create GUI using mnemonics and tool tips.?
To know additional GUI components and containers.核稿(簽名): 審批(簽名): 年 月 日
第三篇:JAVA面向?qū)ο蟪绦蛟O(shè)計(jì)教學(xué)大綱
《JAVA面向?qū)ο蟪绦蛟O(shè)計(jì)》課程教學(xué)大綱
Oriented object Programming in JAVA 編號(hào): 08065121
適用專業(yè):計(jì)算機(jī)科學(xué)與技術(shù)、網(wǎng)絡(luò)工程 學(xué)時(shí)數(shù):32 學(xué)分?jǐn)?shù):2 執(zhí)筆者:田小玲 編寫日期:2009年11月
一、課程的性質(zhì)和目的
本課程是為計(jì)算機(jī)科學(xué)與技術(shù)以及網(wǎng)絡(luò)工程專業(yè)本科生開設(shè)的專業(yè)選修課,是一門面向?qū)ο蟮木幊陶Z言,通過本課程的學(xué)習(xí),培養(yǎng)和提高學(xué)生面向?qū)ο蟪绦蛟O(shè)計(jì)的能力和Java語言在web開發(fā)中的應(yīng)用能力。
二、課程教學(xué)內(nèi)容
第一章 面向?qū)ο筌浖_發(fā)概述(2學(xué)時(shí))1.內(nèi)容
面向?qū)ο髥栴}求解的提出、面向?qū)ο髥栴}求解的概述、對(duì)象、類與實(shí)體、對(duì)象的屬性與相互關(guān)系、面向?qū)ο蟮能浖_發(fā)過程、面向?qū)ο蟪绦蛟O(shè)計(jì)方法的優(yōu)點(diǎn)、開發(fā)環(huán)境設(shè)置及開發(fā)工具簡(jiǎn)介。
2.要求
(1)了解:面向?qū)ο筌浖_發(fā)概述,面向?qū)ο蟮能浖_發(fā)過程及面向?qū)ο蟪绦蛟O(shè)計(jì) 方法的優(yōu)點(diǎn)。
(2)掌握:對(duì)象的屬性與相互關(guān)系,對(duì)象、類與實(shí)體的基本概念。(3)熟練掌握:開發(fā)環(huán)境設(shè)置及開發(fā)工具簡(jiǎn)介(補(bǔ)充)。3.重點(diǎn)
對(duì)象、類與實(shí)體的基本概念。
4.難點(diǎn)
面向?qū)ο蟪绦蛟O(shè)計(jì)方法的理解。第二章 Java概述(2學(xué)時(shí))1.內(nèi)容
Java語言的特點(diǎn)、Java虛擬機(jī)及垃圾回收機(jī)制、JDK目錄結(jié)構(gòu)、Java 的API結(jié)構(gòu)及Java程序結(jié)構(gòu)、第一個(gè)Java Application程序、第一個(gè)Java Applet程序、圖形界面的輸入輸出、字符界面的輸入輸出。
2.要求
(1)了解:Java語言的發(fā)展歷史及特點(diǎn),Java Application程序及Java Applet程 序,圖形界面的輸入輸出,字符界面的輸入輸出。
(2)掌握:Java語言實(shí)現(xiàn)機(jī)制(補(bǔ)充),Java體系結(jié)構(gòu)(補(bǔ)充)。(3)熟練掌握:Java Application程序的結(jié)構(gòu)。3.重點(diǎn)
Java Application程序的結(jié)構(gòu)。
4.難點(diǎn)
Java語言實(shí)現(xiàn)機(jī)制。
第三章 Java語言基礎(chǔ)(2學(xué)時(shí))1.內(nèi)容
數(shù)據(jù)類型、變量與常量、表達(dá)式、流程控制語句。2.要求
(1)了解:java語言的發(fā)展。
(2)掌握:數(shù)據(jù)類型、變量與常量的定義及使用。(3)熟練掌握:表達(dá)式的使用,流程控制語句。3.重點(diǎn)
表達(dá)式的使用,流程控制語句。
4.難點(diǎn)
流程控制語句的運(yùn)用。
第四章 抽象、封裝與類(6學(xué)時(shí))
1.內(nèi)容
抽象與封裝、Java的類、類的修飾符、域、方法、訪問控制符。2.要求
(1)了解:抽象、封裝概念,系統(tǒng)定義的類。
(2)掌握:類的修飾符(abstract和final),域(包括靜態(tài)域、靜態(tài)初始化器、最終域和易失域),方法(包括抽象方法、靜態(tài)方法、最終方法)。
(3)熟練掌握:用戶程序自定義類及創(chuàng)建對(duì)象與定義構(gòu)造函數(shù),訪問控制符(包括public、缺省訪問控制符、private、protected)的運(yùn)用。
3.重點(diǎn)
自定義類、創(chuàng)建對(duì)象與定義構(gòu)造函數(shù)。
4.難點(diǎn)
四種訪問控制符的運(yùn)用。第五章 繼承與多態(tài)(4學(xué)時(shí))1.內(nèi)容
Java的繼承、多態(tài)、Java的重載、構(gòu)造函數(shù)的繼承與重載、包及接口的概念。2.要求
(1)了解:繼承及多態(tài)的概念,Java接口的概念。(2)掌握:Java的方法重載,包的創(chuàng)建及引用。(3)熟練掌握:構(gòu)造函數(shù)的繼承與重載。
3.重點(diǎn)
方法的重載、類的繼承。4.難點(diǎn)
屬性的隱藏、方法的覆蓋。第六章 工具類與算法(2學(xué)時(shí))
1.內(nèi)容
語言基礎(chǔ)類庫(kù)(包括Object類、數(shù)據(jù)類型類、Math類及System類)、Applet類與Applet小程序、數(shù)組。
2.要求
(1)了解:Applet類與Applet小程序。(2)掌握:Java語言基礎(chǔ)類庫(kù)。(3)熟練掌握:數(shù)組的聲明及初始化。3.重點(diǎn)
數(shù)組的聲明及初始化、數(shù)組的應(yīng)用。4.難點(diǎn)
編寫Applet小程序。
第七章 圖形用戶界面的設(shè)計(jì)與實(shí)現(xiàn)(8學(xué)時(shí))
1.內(nèi)容
圖形用戶界面概述、GUI標(biāo)準(zhǔn)組件概述及布局設(shè)計(jì)、Java的事件處理機(jī)制。2.要求
(1)了解:圖形界面組件之間的層次關(guān)系、容器的概念和作用。(2)掌握:圖形用戶界面程序的基本結(jié)構(gòu)。(3)熟練掌握:事件監(jiān)聽機(jī)制。3.重點(diǎn)
圖形用戶界面程序的基本結(jié)構(gòu)。4.難點(diǎn)
Java的事件處理機(jī)制。
第八章 Java高級(jí)編程(6學(xué)時(shí))
1.內(nèi)容
異常處理、Java多線程機(jī)制、Swing GUI 組件、流式輸入輸出與文件處理、用Java實(shí)現(xiàn)底層網(wǎng)絡(luò)通信、Java程序?qū)W(wǎng)上資源的訪問。
2.要求
(1)了解:例外的概念、Java中線程的基本概念、Java的線程類與Runnable接口及如何在程序中實(shí)現(xiàn)多線程、Java輸入輸出類庫(kù)及文件的處理與隨機(jī)訪問、使用Java實(shí)現(xiàn)底層網(wǎng)絡(luò)通信、Java程序?qū)W(wǎng)上資源的訪問。
3(2)掌握:例外處理機(jī)制。
(3)熟練掌握:Swing GUI組件的運(yùn)用。3.重點(diǎn)
例外處理機(jī)制、Swing GUI組件的創(chuàng)建。
4.難點(diǎn)
自定義異常類。
三、課程教學(xué)的基本要求
課程教學(xué)的基本要求包含三項(xiàng):上機(jī)環(huán)節(jié)、作業(yè)要求、考試方式。1.上機(jī)環(huán)節(jié)
根據(jù)課堂講授的理論,并結(jié)合上機(jī)操作讓學(xué)生及時(shí)掌握每章節(jié)所學(xué)的知識(shí),通過實(shí)操可加深學(xué)生對(duì)面向?qū)ο蟪绦蛟O(shè)計(jì)的思想及Java程序設(shè)計(jì)的領(lǐng)會(huì)。
2.作業(yè)要求
(1)作業(yè)要求:獨(dú)立思考完成、書寫工整、按時(shí)交(2)作業(yè)量:每次課均布置作業(yè),作業(yè)量約2~3題(3)總作業(yè)量:約30~40道題 3.考試方式
(1)考試方式:閉卷筆試(2)評(píng)定成績(jī)要求:
總成績(jī)=平時(shí)成績(jī)×30%+考試成績(jī)×70%
四、本課程與其它課程的聯(lián)系與分工
1.前期課程:
程序設(shè)計(jì)基礎(chǔ)、計(jì)算機(jī)網(wǎng)絡(luò)、C語言程序設(shè)計(jì)、C++程序設(shè)計(jì) 2.后續(xù)課程:
軟件工程、Web應(yīng)用程序開發(fā)
五、建議教材與教學(xué)參考書
[1] 印旻.《Java語言與面向?qū)ο蟪绦蛟O(shè)計(jì)》,清華大學(xué)出版社 [2] 於東軍,楊靜宇.《Java程序設(shè)計(jì)與應(yīng)用開發(fā)》,清華大學(xué)出版社 [3] 辛運(yùn)幃.《Java程序設(shè)計(jì)》,清華大學(xué)出版社 [4] 姜?jiǎng)?《Java語言程序設(shè)計(jì)》,人民郵電出版社 [5] 閻菲.《Java程序設(shè)計(jì)教程》,中國(guó)水利水電出版社
第四篇:java面向?qū)ο蟪绦蛟O(shè)計(jì) 書中例子
Java面向?qū)ο蟪绦蛟O(shè)計(jì)
<書中例題>
第1章 Java 語言綜述
例1-1 一個(gè)加法器 //Add.java public class Add { public static void main(String args[]){
int a,b,c;
a=5;
b=7;
c=a+b;
System.out.println(a+“+”+b+“=”+c);} }
例1-2 能接受命令行參數(shù)的應(yīng)用程序 //WhoSayWhat.java class WhoSayWhat { public static void main(String args[]){
if(args.length<2)
{
System.out.println(“請(qǐng)向應(yīng)用程序傳遞兩個(gè)參數(shù):”);
System.exit(0);//
}
String s1=args[0];
String s2=args[1];
System.out.println(s1+“ Say: ”+s2);} }
例1-3小應(yīng)用程序舉例 //Test.java import java.applet.Applet;import java.awt.Graphics;//Graphics public class Test extends Applet {
public void paint(Graphics g){
g.drawString(“hello world!”,50,25);} }
第五篇:Java面向?qū)ο蟪绦蛟O(shè)計(jì)課后答案
Java面向?qū)ο蟪绦蛟O(shè)計(jì)課后答案
Java面向?qū)ο蟪绦蛟O(shè)計(jì) 清華大學(xué)出版社
(編著 耿祥義 張躍平)習(xí)題解答
建議使用文檔結(jié)構(gòu)圖
(選擇Word菜單→視圖→文檔結(jié)構(gòu)圖)習(xí)題1 1.James Gosling、、、、2.
(1)使用一個(gè)文本編輯器編寫源文件。
(2)使用Java編譯器(javac.exe)編譯Java源程序,得到字節(jié)碼文件。(3)使用Java解釋器(java.exe)運(yùn)行Java程序
3.Java的源文件是由若干個(gè)書寫形式互相獨(dú)立的類組成的。應(yīng)用程序中可以沒有public類,若有的話至多可以有一個(gè)public類。4.系統(tǒng)環(huán)境path Djdkbin;系統(tǒng)環(huán)境classpath Djdkjrelibrt.jar;.;5.
B 6. Java源文件的擴(kuò)展名是.java。Java字節(jié)碼的擴(kuò)展名是.class。
7.D 8.(1)Speak.java(2)生成兩個(gè)字節(jié)碼文件,這些字節(jié)碼文件的名字Speak.class 和 Xiti8.class(3)java Xiti8(4)執(zhí)行java Speak的錯(cuò)誤提示
Exception in thread “main” java.lang.NoSuchMethodError: main 執(zhí)行java xiti8得到的錯(cuò)誤提示
Exception in thread “main” java.lang.NoClassDefFoundError: xiti8(wrong name: Xiti8)執(zhí)行java Xiti8.class得到的錯(cuò)誤提示
Exception in thread “main” java.lang.NoClassDefFoundError: Xiti8/class 執(zhí)行java Xiti8得到的輸出結(jié)果 I'm glad to meet you 9.屬于操作題,解答略。習(xí)題2 1.
D 2.【代碼1】
【代碼2】 錯(cuò)誤
//【代碼3】更正為 float z=6.89F;3.float型常量后面必須要有后綴“f”或“F”。
對(duì)于double常量,后面可以有后綴“d”或“D”,但允許省略該后綴。4.public class Xiti4{ public static void main(String args[ ]){ char ch1='你',ch2='我',ch3='他';System.out.println(“”“+ch1+”“的位置:”+(int)ch1);System.out.println(“”“+ch2+”“的位置:”+(int)ch2);System.out.println(“”“+ch3+”“的位置:”+(int)ch3);} } 5.?dāng)?shù)組名字.length 6.?dāng)?shù)組名字.length 7. 【代碼1】A,65 【代碼2】-127 【代碼3】
123456.783,123456.78312 8.
【代碼1】false 【代碼2】true 【代碼3】false 【代碼4】3 【代碼5】4.4 【代碼6】8.8習(xí)題3 輸出110 if-else語句書寫的不夠規(guī)范,復(fù)合語句缺少大括號(hào)“{}”,代碼不夠清晰。2.你好好酷!3.
public class Xiti3_3 {
public static void main(String args[ ]){ int startPosition=0,endPosition=0;char cStart='а',cEnd='я';startPosition=(int)cStart;//cStart做int型轉(zhuǎn)換據(jù)運(yùn)算,并將結(jié)果賦值給startPosition endPosition=(int)cEnd;
//cEnd做int型轉(zhuǎn)換運(yùn)算,并將結(jié)果賦值給endPosition
System.out.println(“俄文字母表:”);for(int i=startPosition;i<=endPosition;i++){ char c=' 主站蜘蛛池模板: 浓毛欧美老妇乱子伦视频| 亚洲欧美中文高清在线专区| 无码人妻精品一区二区三区下载| 国产95在线 | 亚洲| 少妇高潮毛片免费看| 玩弄丰满奶水的女邻居| 国产午夜亚洲精品久久| 亚洲男人第一无码av网| 国产精品自在拍首页视频| 日日碰日日摸日日澡视频播放| 漂亮人妻熟睡中被公侵犯中文版| 无遮挡色视频免费观看| 亚洲国产精品久久艾草| 亚洲熟女一区二区三区| 欧美粗大猛烈老熟妇| 国产精品久久久久秋霞鲁丝| 久久国产劲暴∨内射| 天堂а√在线中文在线新版| 屁屁影院ccyy备用地址| 蜜臀精品国产高清在线观看| 精品亚洲国产成人av在线小说| 中国xxx农村性视频| 国内精品卡一卡二卡三| 国产精品女同一区二区在线| 久久影院午夜伦手机不四虎卡| 精品国产拍国产天天人| 国产精品亚洲产品一区二区三区| 国产欧洲精品自在自线官方| 少妇太爽了在线观看免费视频| 97性无码区免费| 女人被狂躁60分钟视频| 亚洲国产a∨无码中文777| 99视频30精品视频在线观看| 亚洲一区激情校园小说| 欧美激情性做爰免费视频| 久久av无码精品人妻系列果冻传媒| 亚洲精品人成网线在播放va| 日本少妇高潮喷水xxxxxxx| 无码人妻精品一区二区三区东京热| 亚洲无线码在线一区观看| 天堂久久天堂av色综合|