试题详情
单项选择题 static void test() throws Error {  if (true) throw new AssertionError();  System.out.print(”test “);  }  public static void main(String[] args) {  try { test(); }  catch (Exception ex) { System.out.print(”exception “); }  System.out.print(”elld “);  }  What is the result?() 

A、 end

B、 Compilation fails.

C、 exception end

D、 exception test end

E、 A Throwable is thrown by main.

F、 An Exception is thrown by main.

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

热门试题