Chapter 1 Advanced Class Design

THE OCP EXAM TOPICS COVERED IN THIS CHAPTER INCLUDE THE FOLLOWING:

  • ✓  Java Class Design
    • Implement inheritance including visibility modifiers and composition
    • Implement polymorphism
    • Override hashCode, equals, and toString methods from Object class
    • Develop code that uses the static keyword on initialize blocks, variables, methods, and classes
  • ✓  Advanced Java Class Design
    • Develop code that uses abstract classes and methods
    • Develop code that uses final keyword
    • Create inner classes including static inner class, local class, nested class, and anonymous inner class
    • Use enumerated types including methods, and constructors in an enum type
    • Develop code that declares, implements, and/or extends interface and use the @Override annotation

images

Congratulations! If you are reading this, you’ve probably passed the Java Programmer I OCA (Oracle Certified Associate) exam, and you are now ready to start your journey through the Java Programmer II OCP (Oracle Certified Professional) exam. Or perhaps you came here from an older version of the certification and are now upgrading.

The OCP builds upon the OCA. You are expected to know the material on the OCA when taking the OCP. Some objectives on the OCP are the same as those on the OCA, such as those concerning access modifiers, overloading, overriding, abstract classes, static, and final. Most are implied. For example, ...

Get OCP Oracle® Certified Professional Java® SE 8 Programmer II 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.