运行下面程序时,会产生什么异常?() 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

时间:2023-03-13 10:03:52

相似题目