單項(xiàng)選擇題

運(yùn)行下面程序時(shí),會產(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

微信掃碼免費(fèi)搜題