black

SCJP程序员认证考试

登录

单项选择题

public class Foo { 
public static void main(String[] args) { 
try { 
return; 
} finally { 
System.out.println( “Finally” ); 
} 
} 
} 
What is the result?()

A. Finally
B. Compilation fails.
C. The code runs with no output.
D. An exception is thrown at runtime.

相关考题

多项选择题 Whichthreeformpartofcorrectarraydeclarations?()

单项选择题 public class SwitchTest {  public static void main(String[] args) {  System.out.println(“value = “ + switchIt(4));  }  public static int switchIt(int x) {  int j = 1;  switch (x) {  case 1: j++; case 2: j++;  case 3: j++;  case 4: j++;  case 5: j++;  default: j++;  }  return j + x; }  }  What is the result?()

单项选择题 int i = 0;  for (; i <4; i += 2) {  System.out.print(i + “”);  }  System.out.println(i);  What is the result?()

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

备案号:湘ICP备2022003000号-2