Question 72 / 90:  What access modifier, if any, should be used on all instance variables unless there is a particular reason not to use it?
A  public
B  private
C  protected
D  package-private (default)
<< First < Previous Flashcard Next > Last >>
Explanation:

B. Instance variables should have the most restrictive modifier, which is private.

A, C, and D are incorrect.

All of these access modifiers, including the default access level, are less restrictive than private.

Exam Home Page
https://www.jobilize.com/quiz-my-oca-mock-exam-by-mike-wolf

My OCA Mock

Author:

Access: Public Instant Grading

Ask
Keyaira Braxton
Start Exam
Copy and paste the following HTML code into your website or blog.
<iframe src="https://www.jobilize.com/embed/quiz-my-oca-mock-exam-by-mike-wolf" width="600" height="600" frameborder="0" marginwidth="0" marginheight="0" scrolling="yes" style="border:1px solid #CCC; border-width:1px 1px 0; margin-bottom:5px" allowfullscreen webkitallowfullscreen mozallowfullscreen> </iframe>