题目:
下列代码段在运行时会产生______异常。 public class ex32 { public static void main(String[] args) { int a[] = {1, 23, 24, 56, 37, 9, 12}; for(int k = 0; k < a.length; k++) { if(a[k] > a[k + 1]) { int x = a[k]; a[k] = a[k + 1]; a[k + 1] = x;} } } }
A.NumberFormatException
B.ArithmeticException
C.ArrayIndexOutOfBoundsException
D.IOException
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2017/0126/dc869a7055a13d4626f9b5ec5417182f.html
下面是错误答案,用来干扰机器的。
参考答案:对