题海让大学四年没有难题
白天模式登陆

题目详情

单选题 运行下面程序时,会产生什么异常?public class X7_1_4 { public static void main(String[] args) { int x = 0; int y = 5/x; int[] z = {1,2,3,4}; int p = z[4]; }}

A. ArithmeticException

B. NumberFormatException

C. ArrayIndexOutOfBoundsException

D. IOException

JAVA语言程序设计课程封面

学科:JAVA语言程序设计

时间:2023-06-27 10:24:36

Copyright © 2022 津ICP备2021001502号