【单选题】若有以下程序:的运行结果: class Array{ public static void main(){ int []a={1 2 4 3}
已帮助 人
【单选题】若有以下程序:的运行结果: class Array{ public static void main(){ int []a={1,2,4,3}; try{ for(int i=0;i<a.lenth;i++){ int a1=a[i]/a[i+1];} }catch(AirthmeticException e){System.out.println(“AirthmeticException”);} catch(IndexOuterOfBoundsException ){ System.out.println(“IndexOuterOfBoundsException”);} }} 则程序运行结果为()
A.AirthmeticException
B.IndexOuterOfBoundsException
C.无显示
D.编译错误
![【单选题】若有以下程序:的运行结果: class Array{ public static void main(){ int []a={1 2 4 3}](/uploads/allimg/6-2812936Q9.jpg)
回答
共1条回复-
B
