單項(xiàng)選擇題

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

微信掃碼免費(fèi)搜題