Java Practice Test - 5

Casual Mode - Take your time!

1 / 25
Correct
0
Incorrect
0
Score
0%
Multiple Choice

What will be the output of the program?
int I = 0;
label:
if (I < 2) {
System.out.print("I is " + I);
I++;
continue label;
}

  1. I is 0
  2. I is 0 I is 1
  3. Compilation error
  4. None of the above
Change Mode