下列程序的输出结果是 public class Excep { public static void main(String[] args){ char[] c

下列程序的输出结果是
public class Excep {
public static void main(String[] args){
char[] c=new char[10];
try{
c[10]=‘A’;
}catch(ArithmeticException e){
System.out.println(e);
}catch(NullPointerException e){
System.out.println(e);
}catch(ArrayIndexOutOfBoundsException e){
System.out.println(e);
}finally{
System.out.println(“最后都要执行这句");
}
}
}
最新回答
献世佛

2025-03-26 02:39:36

java.lang.ArrayIndexOutOfBoundsException: 10
最后都要执行这句
雨薇之恋

2025-03-26 18:34:22

null