1.

What will be the output of the program?

int I = 0; outer: while (true) { I++; inner: for (int j = 0; j < 10; j++) { I += j; if (j == 3) continue inner; break outer; } continue outer; }
System.out.println(I);

A. 1
B. 2
C. 3
D. 4
Answer» B. 2


Discussion

No Comment Found

Related MCQs