nerdexam
Oracle

1Z0-851 · Question #9

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

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

Question

Given: class Atom { Atom() { System.out.print("atom "); } } class Rock extends Atom { Rock(String type) { System.out.print(type); } } public class Mountain extends Rock { Mountain() { super("granite "); new Rock("granite "); } public static void main(String[] a) { new Mountain(); } } What is the result?

Options

  • ACompilation fails.
  • Batom granite
  • Cgranite granite
  • Datom granite granite
  • EAn exception is thrown at runtime.
  • Fatom granite atom granite

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