题目内容

What will be the value of x[8] after the following code has been executed? 执行以下代码后,x[8]的值是多少?}

A. 170
B. 180
C. 190
D. 200

查看答案
更多问题

Java performs ____________, which means that it does not allow a statement to use a subscript that is outside the range of valid subscripts for the array. Java执行_________,这意味着它不允许语句使用数组有效下标范围之外的下标。

A. active array sequencing 有源阵列测序
B. array bounds checking 数组边界检查
C. scope resolution binding 范围分辨率绑定
D. buffer overrun protection 缓冲区溢出保护

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 以上都是

答案查题题库