有下面程序段: Public class ArrayTest Public s
问题:
有下面程序段:
Public class ArrayTest
Public static void main(String args[])
int[] intArray=new int[3];
for(int I=0;I<3;I++)
intArray[I]=I+2;
System.out.println("IntArray["+I+"]"-"+intArray[I]);
System.out.println("------------");
Int arrLen=4;
IntArray=new int[arrLen];
For(int j=intArray.length;j>=0;j--
intArray [j]=j*3;
System. out.println("hello"+intArray[j]);
则运行的结果是( )。
A) 编译出错
B) 编译通过,但运行出错
C) 可以运行,但有错误
D) 以上都不对