在下面的代码片段中如果分母值为0,输出结果______。 try{ int result=50/denominator; } catch(
在下面的代码片段中如果分母值为0,输出结果______。
try{
int result=50/denominator;
}
catch(ArrayoutofBoundsException e){
System.out.println("Array out of bounds");
}
catch(Exception e){
System.out.println("Exception raised");
}
catch(ArithmaticExcetion e){
System.out.println("Arithmetic exception");
}
A.代码将导致编译错误
B.会打印出“Arithmetic exception”的信息
C.会打印出“Array out ofbounds”的信息
D.会打印出“Exception raised”的信息