單項選擇題

運行下面程序時,會產(chǎn)生什么異常?()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

微信掃碼免費搜題