执行下列程序时,会产生( )异常。 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.EOFExcepfion
第1题:
第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 = 5/x; } }
A.ArithmeticException
B.NumberFormatException
C.ArrayIndexOutOfBoundsException
D.IOException
第3题:
28、运行下面程序时,会产生什么异常?() 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
第4题:
运行下面程序时,会产生什么异常?() 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
第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.NumberFormatException
B.ArrayIndexOutOfBoundsException
C.IOException
D.ArithmeticException
第6题:
main方法是Java应用程序执行的入口点,下面main方法的方法头合法的是()
A.public static void main()
B.public static void main(String[] args)
C.public static void Main(String[] args)
D.public static int main(String[] args)