Java

11/5/99


Click here to start


Table of Contents

Java

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 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++)

Author: Greg J. Badros & Alan Borning