Chapter 7. Nested Classes And Interfaces

Exam Objectives

  • Write code to construct instances of any concrete class, including normal top-level classes and nested classes.

Supplementary Objectives

  • State the kinds of nested classes and interfaces that can be defined.

  • Identify the context in which a nested class or interface can be defined.

  • State which accessibility modifiers are allowed for each category of nested classes.

  • State which nested classes create instances that are associated with instances of the enclosing context.

  • State the access rules that govern accessing entities in the enclosing context of nested classes, and write code that uses the augmented syntax involving the this keyword for this purpose.

  • State whether a definition of a nested ...

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.