public class C {
public static void main(String[] args) {
int[] z = {1,2,3,4};
int p = z[4];
int x = 0;
int y = 5/x;
}
}
A
ArithmeticException
B
NumberFormatException
C
ArrayIndexOutOfBoundsException
D
IOException
答案:C
public class C {
public static void main(String[] args) {
int[] z = {1,2,3,4};
int p = z[4];
int x = 0;
int y = 5/x;
}
}
A
ArithmeticException
B
NumberFormatException
C
ArrayIndexOutOfBoundsException
D
IOException
答案:C
评论0