Language Elements


  • Single inheritance rooted in common class Object

  • Subclassing builds new types
    public class ExitableFrame
    extends java.awt.Frame { ... }

  • Support for mix-in "inheritance" via Interfaces enhances opportunities for reuse

  • Strongly type checked
    • Most type checking performed statically
    • Assignment type compatibility checked dynamically (if necessary)

  • Access protection for classes, fields and methods

Detailed Description:

"Let's look at the Java language elements in a little more detail. We'll go into the syntax in more detail later. The first element is single inheritance rooted in a common object called Object. We had mentioned that previously. Realize again that it's single class inheritance. We'll discuss later the fact that it deals also with multiple interface inheritance."