A Programmer[ap]s Guide to Java Certification
Relevant Sections
Read Sections 4.2 "Defining Classes" and 4.3 "Defining Methods," and all the sections from 4.5 "Scope Rules" till the end of the chapter. For inner classes, see Chapter 7. For method overriding, see Section 6.2. Study Notes
Modifiers affect classes, methods, and variables and each modifier has a specific significance. Accessibility modifiers specify where classes and methods can be accessed and used. Knowing which modifiers are applicable in a given context is important. |