In Java, you do not use the new operator when you use a(n): 在Java中,当你使用a(n)时,你不会使用新的运算符:
A. array size declarator 数组大小声明器
B. initialization list 初始化列表
C. two-dimensional array 二维数组
D. All of the above 以上都是
查看答案
Each array in Java has a public field named ____________ that contains the number of elements in the array.Java中的每个数组都有一个名为_________的公共字段,该字段包含数组中元素的数量。
A. size
B. capacity 容量
C. length
D. limit
When an array is passed to a method: 当一个数组被传递给一个方法:
A. a reference to the array is passed 一个对数组的引用被传递
B. it is passed just as an object 它只是作为一个对象传递
C. the method has direct access to the original array 该方法可以直接访问原始数组
D. All of the above 以上都是
}
A. 27
B. 33
C. 38
D. 49
What do you normally use with a partially-filled array?对于部分填充的数组,通常使用什么?
A class that does nothing but manage the array 除了管理数组外什么也不做的类
B. An accompanying parallel array 伴随的并行阵列
C. An accompanying integer value that holds the number of items stored inthe array一个附带的整数值,用于保存数组中存储的项数
D. An accumulator 一个累加器