Table of ContentsJava Java: A Timeline Java: The Language Hello World! Java vs. C++ Unlike C++, Java has…. Brewing Java Java vs. Smalltalk Unlike Smalltalk, Java... Java vs. C++, Revisited Java’s Hybrid Object Model Java’s Class Hierarchy Java Documentation HelloWorld Applet Running the HelloWorld Applet Methods:A Closer Look More on Methods Default Arguments “Override” vs. “Overload” Java’s Class Hierarchy What can anObject do for you today? Objects and Identities Cloning Objects Changing a Ball Inequality in Balls! Assignmentjust changes the pointer Java variables hold... Arrays Identifiers import statement How JavaFinds a Class... Compilationof Source File Class Access Protection Not even friends cantouch Java’s private parts Java Accessibility vs. C++ No Need forForward Declarations Final Fields Ball and CBall Example Inheritance Mechanisms Java Interfaces Bounceable Interface Ball ExampleOutput and Errors Types vs. Classes Multiple Inheritance in Java Abstract Methodsand Abstract Classes Final Methods Final Classes try { throw } andcatch, finally (exceptions) Exception Hierarchy Threads Summary:What Java Left Out from C++ Summary:What Java Put In (vs. C++) |
Author: Greg J. Badros
Email: badros@cs.washington.edu Home Page: http://www.cs.washington.edu/education/courses/341/CurrentQtr |