执行下列程序时,会产生什么异常( )。
A.ArrayIndexOutOfBoundsException
B.NumberFormatException
C.ArithmeticException
D.EOFException
第1题:
执行下列程序时,会产生什么异常 public class Test { public static void main(String args[ ])( int d=101; int b=220; long a=321; System.out.println((a-B) /(a-b-D) ); } }
A.ArrayIndexOutOfBoundsException
B.NumberFormatException
C.ArithmetieException
D.EOFException
第2题:
运行下面程序时,会产生什么异常?() public class X7_1_5 { public static void main(String[] args) { int[] z = {1,2,3,4}; int p = z[4]; int x = 0; int y = p/x; } }
A.ArithmeticException
B.ArrayIndexOutOfBoundsException
C.NumberFormatException
D.IOException
第3题:
运行下面程序时,会产生什么异常?() public class X7_1_5 { public static void main(String[] args) { int[] z = {1,2,3,4}; int p = z[4]; int x = 0; int y = 5/x; } }
A.NumberFormatException
B.ArrayIndexOutOfBoundsException
C.IOException
D.ArithmeticException
第4题:
执行下列程序时,会产生什么异常( )。 public class Test{ public static void main(String args[]){ int d=101; int b=220: long a=321; System.OUt.println((a-b)/(a-b-d)); } }
A.ArraylndexOutOfBoundsException
B.NumberFormatException
C.ArithmeticException
D.EOFExeeption
第5题:
运行下面程序时,会产生什么异常?() public class X7_1_5 { 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