文档介绍:Network Programming (Java)
Text Book:
Thinking in Java, 3rd ed. Revision
By Bruce Eckel
Instructor: Junhai Zhou
Email: lucky2001ok@
Network Programming (Java)
Grade (100 points):
Homework & Peacetime: 20 points;
Experiments: 30 points
Final exam: 50 points, final exam will prehensive.
Targets and Objectives
Course target:
Entry level work programming with Java. The audiences should have had experience in a procedural programming language, although not necessarily C.
Course objectives:
Teach you how to design and work program, with Java language in OOP mode, not just coding.
Contents
work Programming (Java)
is an Object & Operators
Execution & Initialization & Cleanup
Classes
& Inner Classes
and Swing
and Layout
Introduction to Objects
Topics:
The progress of abstraction
An object has an interface
The hidden implementation
Reusing the implementation
Inheritance: reusing the interface
Is-a vs. is-like-a relationships
Interchangeable objects with polymorphism
Abstract base classes and interfaces
Object creation, use & lifetimes
Introduction to Objects (cont)
Topics:
Collections and iterators
The singly rooted hierarchy
Downcasting vs. templates/generics
Ensuring proper cleanup
Garbage collectors vs. efficiency and flexibility
Exception handling: dealing with errors
Concurrency
Persistence
Why Java eeds
Java vs. C++?
Java Program
Java Application
Java Applet
//:
import ;
/** The first Thinking in Java example program.
* Displays a string and today's date.
* ***@author Junhai Zhou
* ***@author ss./rjxy
* ***@version
*/
public class HelloWorld {
/** Entry point to class & application.
* ***@param args array of string arguments
* ***@throws exceptions No exceptions thrown
*/
public static void main(String[] args) {
("HelloWorld! ");
("it's:" + new Date());
}
}
//: