问题详情

public class Test {  public static void aMethod() throws Exception {  try {  throw new Exception(); } finally {  System.out.println(“finally”);  }  }  public static void main(String args[]) {  try {  aMethod();  } catch (Exception e) {  System.out.println(“exception”);  }  System.out.println(“finished”);  }  }  What is the result?()  


A、 finally

B、 exception finished

C、 finally exception finished

D、 Compilation fails.

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

答案解析

C
相关问题