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:
- String name = "Fred";
- System.out.println("Hello" + // Saying hello
- name); // to Fred
- System.out.println("Good /* and " +
- "*/ greeting */ day!");
- System.out .out // A welcome message
- .println ("Welcome " + name);
- 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.