1.

What will be the output of the following code. int j=50; while(true) { if(j<10) break; j=j-10; } System.out.println(“j is “+j);

A. Error
B. j is 0
C. j is 50
D. No output
Answer» C. j is 50


Discussion

No Comment Found

Related MCQs