多做题,通过考试没问题!

Java认证考试

睦霖题库>其他计算机考试>Java认证考试

try {  int x = 0;  int y = 5 / x;  } catch (Exception e) {  System.out.println(“Exception”);  } catch (ArithmeticException ae) {  System.out.println(“Arithmetic Exception”);  }  System.out.println(“finished”);  What is the result?()  

  • A、 finished
  • B、 Exception
  • C、 Compilation fails.
  • D、 Arithmetic Exception
正确答案:D
答案解析:
进入题库查看解析

微信扫一扫手机做题