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.
正确答案:C
答案解析:有
微信扫一扫手机做题