📚 Practice Mode

Java Practice Test - 5

Learn at your own pace with hints and detailed explanations

1 / 25
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