Chapter Summary

The following information was included in this chapter:

  • categories of nested classes: static member classes and interfaces, non-static member classes, local classes, anonymous classes

  • discussion of salient aspects of nested classes and interfaces:

    • the context in which they can be defined

    • which accessibility modifiers are valid for such classes and interfaces

    • whether an instance of the enclosing context is associated with an instance of the nested class

    • which entities a nested class or interface can access in its enclosing contexts

    • whether both static and non-static members can be defined in a nested class

  • importing and using nested classes ...

Get Programmer's Guide to Java™ Certification, A: A Comprehensive Primer, Second Edition 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.