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