【单选题】若有以下程序:的运行结果: 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}

热搜:一个c程序的执行是从本程序的main函数开始