Chapter 6Working with Methods and Encapsulation

THE OCA EXAM TOPICS COVERED IN THIS PRACTICE TEST INCLUDE THE FOLLOWING:

  • 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; differentiate between default and user defined 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

 

 

  1. Fill in the blanks: The____________ access modifier allows access to ...

Get OCA / OCP Java SE 8 Programmer Practice Tests 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.