Chapter 2

Declarations, Initialization, and Scoping

SCJP EXAM OBJECTIVES COVERED IN THIS CHAPTER

  • Develop code that declares classes (including abstract and all forms of nested classes), interfaces, and enums, and includes the appropriate use of package and import statements (including static imports).
  • Develop code that declares an interface. Develop code that implements or extends one or more interfaces. Develop code that declares an abstract class. Develop code that extends an abstract class.
  • Develop code that declares, initializes, and uses primitives, arrays, enums, and objects as static, instance, and local variables. Also, use legal identifiers for variable names.
  • Develop code that declares both static and non-static methods, and — if appropriate ...

Get SCJP: Sun Certified Programmer for Java® Platform, SE6, Study Guide 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.