What does the following statement do?解释下面的语句的涵义?double[] array1 = new double[10];
A. Declares array1 to be a reference to an array of double values 声明array1是一个double数组的引用
B. Creates an instance of an array of 10 double values 创建一个包含10个double型的数组的实例
C. Will allow valid subscripts in the range of 0 - 9 将允许0 - 9范围内的有效下标
D. All of the above 以上都是
查看答案
It is common practice to use a ____________ variable as a size declarator。通常使用一个________变量作为范围声明符。
A. static 静态
B. reference 参考
C. final 最终
D. boolean 布尔
What do you call the number that is used as an index to pinpoint a specific element within an array?索引来确定数组中特定元素的数字称为什么?
A. subscript 下标
B. global unique identifier 全局唯一标识符
C. element 元素
D. argument 参数
Subscript numbering always starts at what value? 下标编号总是从什么值开始?
A. 0
B. 1
C. -1
D. None of the above 以上都不是
By default, Java initializes array elements with what value?Java用什么值初始化数组元素?
A. 0
B. 100
C. 1
D. -1