1.

What will be the result of the following code?public class Test{static public void main(String args[]){ //line 2int i, j;for(i=0; i<3; i++){for(j=1; j<4; j++){i%=j;System.out.println(j);}}}}

A. 2 3 1
B. 2 3 2
C. epeatedly print 1 2 3 and cause infinite loop.
D. ompilation fails because of line 2
E. one of these
Answer» D. ompilation fails because of line 2


Discussion

No Comment Found