Chapter 4Methods and Encapsulation

OCA exam objectives covered in this chapter:

  • correct Working with Methods and Encapsulation
    • Create methods with arguments and return values; including overloaded methods
    • Apply the static keyword to methods and fields
    • Create and overload constructors; include impact on default constructors
    • Apply access modifiers
    • Apply encapsulation principles to a class
    • Determine the effect upon object references and primitive values when they are passed into methods that change the values
  • correct Working with Selected classes from the ...

Get OCA: Oracle Certified Associate Java SE 8 Programmer I Study Guide: Exam 1Z0-808 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.