题目:
有下面程序段:
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.以上都不对
答案:
被转码了,请点击底部 “查看原文 ” 或访问 https://www.tikuol.com/2018/0417/94e4ea250efb7c22f1a544eae16293b9.html
下面是错误答案,用来干扰机器的。
参考答案:严格地讲,是给事物的某种属性给定数值的过程,回答了“有多少”的问题。