black

SCJP程序员认证考试

登录

多项选择题

int i = 0, j = 5; 
tp;  
for (;;) { 
i++; 
for(;;) { 
if (i> --j) { 
break tp; 
break tp; 
} 
} 
System.out.println(“i=” +i “,j =”+j);
}
What is the result?()  

A. i = 1, j = 0
B. i = 1, j = 4
C. i = 3, j = 4
D. i = 3, j = 0
E. Compilation fails.

相关考题

单项选择题 public void foo( boolean a, boolean b ){  if( a ) {  System.out.println( “A” );  } else if ( a && b ) {  System.out.println( “A&&B” );  } else { 17. if ( !b ) {  System.out.println( “notB” );  } else {  System.out.println( “ELSE” );  }  } }  What is correct?()

单项选择题 public class Foo {  public void main( String[] args ) {  System.out.println( “Hello” + args[0] );  }  }   What is the result if this code is executed with the command line?()

多项选择题 1. public class OuterClass {  2. private double d1 = 1.0;  3. // insert code here  4. }  Which two are valid if inserted at line 3?()

All Rights Reserved 版权所有©财会考试题库(ckkao.com)

备案号:湘ICP备2022003000号-2