black

SCJP程序员认证考试

登录

单项选择题

public class X { 
public static void main(String [] args) { 
try { 
badMethod(); 
System.out.print(“A”);
} 
catch (Exception ex) { 
System.out.print(“B”); 
} 
finally { 
System.out.print(“C”); 
} 
System.out.print(“D”); 
} 
 public static void badMethod() {}
} 
What is the result?()  

A. AC
B. BD
C. ACD
D. ABCD
E. Compilation fails.

相关考题

单项选择题 int i = 1,j = -1;  switch (i) {  case 0, 1:j = 1;  case 2: j = 2;  default; j = 0;  }  System.out.println(“j=”+j);  What is the result?()

单项选择题 class Base {  Base() { System.out.print(“Base”); }  }  public class Alpha extends Base {  public static void main( String[] args ) {  new Alpha();  new Base();  }  }  What is the result?()

单项选择题 10.publicObjectm(){11.Objecto=newFloat(3.14F);12.Object[]oa=newObject[1];13.oa[0]=o;14.o=null;15.returnoa[0];16.}WhenistheFloatobject,createdinline11,eligibleforgarbagecollection?()

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

备案号:湘ICP备2022003000号-2