Java
Java: A Timeline
Java: The Language
Hello World!
Java vs. C++
Unlike C++, Java has….
Command Line Arguments
Brewing Java
Java vs. C++, Revisited
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”
Java’s Class Hierarchy
What can anObject do for you today?
More on equals()
Objects and Identities
Cloning Objects
Changing a Ball
Inequality in Balls!
Assignmentjust changes the pointer
Java variables hold...
Arrays
2-d and 3-d Arrays
Strings
Strings are Immutable
Identifiers
import statement
How JavaFinds a Class...
Compilationof Source File
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++)