1)
Choose right answer.
public class Example {
public static void main (
String args[ ] ) {
outer :
for ( int x = 0 ; x < 2 ; x ++ ) {
inner :
for ( int a = 0 ; a < 2 ; a ++ ) {
if ( a == 1 ) {
continue outer ;
}
System.out.println ( ��a=��+a+��x=��+x )
;
}
}
}
}
��A. a=0 x=0
��B. a=0 x=1
��C. a=1 x=0
��D a=1 x=1
��E. a=2 x=0
��F. a=2 x=1
��G. a=2 x=2
ans) a,b //is this right?? First I thought this was wrong but the answer says so.. maybe this isnt that simple(?) as it looks??
I'd appreciate any comments