1Z0-811 • Practice Test 4 — 25 Questions
Free 1Z0-811 practice test 4 — 25 questions with explanations. No signup required.
What is the output of the program?
Refer to the exhibit.
public class LoopTest {
public static void main(String[] args) {
int count = 0;
for (int i = 0; i < 5; i++) {
if (i == 2) {
continue;
}
count++;
}
System.out.println(count);
}
}