Oracle
1Z0-850 · Question #53
1Z0-850 Question #53: Real Exam Question with Answer & Explanation
Sign in or unlock 1Z0-850 to reveal the answer and full explanation for question #53. The question stem and answer options stay visible for context.
Question
Given:
- class Test {
- public static void main(String args[]) {
- for (int i = 1; i < 5; i++) {
- if (i == 2) {
- continue;
- }
- System.out.print(" i = " + i);
- }
- }
- } What is the result?
Options
- Ai=1i=3i=4i=5
- Bi=1
- Ci=1i=3i=4
- DThe code runs with no output.
- Ei=1i=2i=4
- Fi=1i=2i=4i=5
- GCompilation fails.
Unlock 1Z0-850 to see the answer
You've previewed enough free 1Z0-850 questions. Unlock 1Z0-850 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.