nerdexam
Oracle

1Z0-851 · Question #191

1Z0-851 Question #191: Real Exam Question with Answer & Explanation

The correct answer is C. any class in the test package. See the full explanation below for the reasoning.

Question

Given: package test; class Target { public String name = "hello"; } What can directly access and change the value of the variable name?

Exhibit

1Z0-851 question #191 exhibit

Options

  • Aany class
  • Bonly the Target class
  • Cany class in the test package
  • Dany class that extends Target

Community Discussion

No community discussion yet for this question.

Full 1Z0-851 Practice