下面程序的输出结果是什么?( )
class Upwork {
public static void main(String args[]) {
try {
int a[] = {1,2,3,4,5};
for(int i=0; i<7; i++)
System.out.println(a[i]);
} catch(ArrayIndexOutOfBoundsException e) {
System.out.println("0");
}
}
}12345
123450
1234500
编译错误
数组越界访问将诱发Exception,也将中断循环操作