Table of ContentsJava Topics of Particular Interest The Ideal Object-Oriented Language Other Issues Java: A Timeline Java: The Language Hello World! Java vs. C++ Unlike C++, Java has…. Brewing Java Java’s Hybrid Object Model Primitive types in Java Java’s Class Hierarchy Java Documentation HelloWorld Applet Running the HelloWorld Applet Methods:A Closer Look More on Methods Default Arguments “Override” vs. “Overload” More on Scoping Inner Class Example Inner Class Example cont. Java’s Class Hierarchy Java variables hold... Arrays Collections Iterating through Collections Typing Rules for Arrays Typing Rules for Arrays (2) Typing Rules for Arrays (3) Identifiers import statement Class Access Protection Private: most restrictive access modifier 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 & Alan Borning |