Inner Classes


    •    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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.