欢迎来到易学考试网 易学考试官网
全部科目 > Java认证考试 > Java认证考试综合练习

单项选择题

运行下面程序时,会产生什么异常?()publicclassX7_1_4{publicstaticvoidmain(String[]args){intx=0;inty=5/x;int[]z={1,2,3,4};intp=z[4];}}

    A.ArithmeticException
    B.NumberFormatException
    C.ArrayIndexOutOfBoundsException
    D.IOException

点击查看答案

相关考题

微信小程序免费搜题
微信扫一扫,加关注免费搜题

微信扫一扫,加关注免费搜题