PDF File

Latest Oracle 1Z0-811 Practice Questions BY Boyle

Question 1

Given the code fragment:

Which code fragment can be inserted at line n1 to enable the code to print 0.0?

  • A. Ball b = null; b.weight = 0.0;
  • B. Ball.weight = 0.0;
  • C. Ball b = new Ball(0.0);
  • D. Ball b = new Ball();
Question 2

Given:

And the code fragment:

What is the result?

  • A. A compilation error occurs at line n1.
  • B. White : null
  • C. null: null
  • D. White : White