Hi all,you might think i am posting a lot of questions expecting you to answer,well the thing is i am posting the questions which completely confused me..so just to check whether it confuses others or not Well here it goes: What does the following code print(Note:There may be Multiple answers or a single answer) outer: for ( int i = 0 ; i<3 ; i++ ) { for ( int j = 0 ; j<2 ; j++ ) { if ( i == j ) { continue outer ; } System.out.println( "i=" + i + " , j=" + j ) ; } } a)i=1 , j=0 b)continue cannot be used with for loop. c)i=2 , j=0 d)It won't compile. e)i=2 , j=1 f)It will compile but won't print anything. [This message has been edited by Surya B (edited July 31, 2000).]
sasank manohar
Ranch Hand
Joined: Feb 14, 2008
Posts: 186
posted
0
Answer is a,c,e Very good question. It may appear in the exam.
"SCJP5 | SCWCD5| DEVELOPER"
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.