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 an Object do for you today?

More on equals()

Objects and Identities

Cloning Objects

Changing a Ball

Inequality in Balls!

Assignment just changes the pointer

Java variables hold...

Arrays

2-d and 3-d Arrays

Strings

Strings are Immutable

Identifiers

import statement

How Java Finds a Class...

Compilation of Source File

Class Access Protection

Private: most restrictive access modifier

Java Accessibility vs. C++

No Need for Forward Declarations

Final Fields

Ball and CBall Example

Inheritance Mechanisms

Java Interfaces

Bounceable Interface

Ball Example Output and Errors

Types vs. Classes

Multiple Inheritance in Java

Abstract Methods and Abstract Classes

Final Methods

Final Classes

try { throw } and catch, finally (exceptions)

Exception Hierarchy

Threads

Summary: What Java Left Out from C++

Summary: What Java Put In (vs. C++)