Chapter 6, “Overloading, Overriding, Runtime Type, and Object Orientation”

Because Java classes can only have one parent, Java does not support multiple inheritance.

Classes are declared using the following syntax:

modifiers class ClassName extendsClause implementsClause {
 // Class body
}

A top-level class can be declared as public, final, or abstract.

You are likely to encounter several questions on the certification exam that test your ability to design a class using an English-language specification of the class's characteristics. This description will specify relationships using is a and has a. is a specifies a subclass relationship, and has a identifies a field variable also known as composition.

If a class does not declare a constructor, ...

Get Sun Certification Training Guide (310-025, 310-027): Java™ 2 Programmer and Developer Exams now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.