问题详情

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


A、 BD

B、 BCD

C、 BDE

D、 BCDE

E、 ABCDE

F、 Compilation fails.

时间:2022-01-04 17:18 关键词: SCJP程序员认证考试

答案解析

C
相关问题