nerdexam
Oracle

1Z0-811 · Question #32

1Z0-811 Question #32: Real Exam Question with Answer & Explanation

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

Question

Given the code fragment:
  1. String name = "Fred";
  2. System.out.println("Hello" + // Saying hello
  3. name); // to Fred
  4. System.out.println("Good /* and " +
  5. "*/ greeting */ day!");
  6. System.out .out // A welcome message
  7. .println ("Welcome " + name);
  8. System.out.println("Goodbye /* Farewell + name"); Which statement is true?

Options

  • AA compilation error occurs at line 5.
  • BA compilation error occurs at line 3.
  • CThe code compiles without errors.
  • DA compilation error occurs at line 7.

Unlock 1Z0-811 to see the answer

You've previewed enough free 1Z0-811 questions. Unlock 1Z0-811 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-811 Practice