单项选择题
运行下面的程序时,会产生 。 public class
Test{ public static void main(String args[ ] )
{ int x =0;
int y = 2/x;
int z[ ] = {1,2,4,6}; int
p=z[4]; } }
A. ArrayIndexOutOfBoundsExcePtion异常
B. NumberFormatException异常
C. ArithmeticException异常
D. ArithmeticException异常和ArrayIndexOutOfBoundsExcePtion异常