nerdexam
Oracle

1Z0-851 · Question #39

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

Sign in or unlock 1Z0-851 to reveal the answer and full explanation for question #39. The question stem and answer options stay visible for context.

Question

Given: package geometry; public class Hypotenuse { public InnerTriangle it = new InnerTriangle(); class InnerTriangle { public int base; public int height; } } Which statement is true about the class of an object that can reference the variable base?

Options

  • AIt can be any class.
  • BNo class has access to base.
  • CThe class must belong to the geometry package.
  • DThe class must be a subclass of the class Hypotenuse.

Unlock 1Z0-851 to see the answer

You've previewed enough free 1Z0-851 questions. Unlock 1Z0-851 for full answers, explanations, the timed quiz mode, progress tracking, and the master PDF. Question stem and options stay visible so you can still see what's on the exam.

Full 1Z0-851 Practice