—— Does she like books?—— Yes, she ______.
查看答案
下列关于数组声明()是错误的。
A. int [] a = {1,2};
B. int a[] = {1,2};
C. int []a=new int [2];
D. int a[2] = {1,2};
下面代码的运行结果是( )。public class Person {static int arr[] = new int [10];public static void main(String args[]) {System.out.println(arr[9]);}}
A. 编译错误
B. 编译正确,运行时产生错误
C. 输出0
D. 输出 空
以下输出是什么classTestIt{publicstaticvoidmain(String[]args){int[]myArray={1,2,3,4,5};ChangeIt.doIt(myArray);for(intj=0;j
A. 12345
B. 什么都不会打印出来
C. 程序将因运行时错误而停止
D. 00000