12

Inner Classes

CERTIFICATION OBJECTIVES

    •    Create Top-Level and Nested Classes

    •    Inner Classes

    •    Method-Local Inner Classes

    •    Anonymous Inner Classes

    •    Static Nested Classes

     image    Two-Minute Drill

Q&A Self Test

Inner classes (including static nested classes) appear throughout the exam. Although there are no official exam objectives exclusively about inner classes, OCP Objective 2.4 includes inner (aka nested) classes. More importantly, the code used to represent questions on virtually any topic on the exam can involve inner classes. Unless you deeply understand the rules and syntax for inner classes, ...

Get OCA/OCP Java SE 7 Programmer I & II Study Guide (Exams 1Z0-803 & 1Z0-804) 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.