1.

What will be the output of the program?
 int i = l, j = -1; switch (i) { case 0, 1: j = 1; /* Line 4 */ case 2: j = 2; default: j = 0; } System.out.println("j = " + j); 

A. J = -1
B. J = 0
C. J = 1
D. Compilation fails.
Answer» E.


Discussion

No Comment Found