试题详情
单项选择题 public class X {  public static void main(String [] args) {  try {  badMethod();  System.out.print(“A”);  }  catch (Exception ex) {  System.out.print(“C”);  }  finally {  System.out.print(“B”);  }  System.out.print(“D”);  }  public static void badMethod() {  throw new Error();  }  }  What is the result?()  

A、 ABCD

B、 Compilation fails.

C、 C is printed before exiting with an error message.

D、 BC is printed before exiting with an error message.

E、 BCD is printed before exiting with an error message.

  • B
  • 关注下方微信公众号,在线模考后查看

热门试题