多项选择题
A.基本数据类型的数组位于堆栈中,而对象类型的数组位于堆中。 B.数组一经实例化后,其长度无法再改变 C.数组元素的起始下标是0 D.数组需使用new关键字来实例化,实例化后的数组,其元素具有初始值。
1. class BigDog extends Dog { 2. // insert code here ...
1. class BigDog extends Dog { 2. // insert code here 3. } 分别插入到第 2 行,哪二项可以编译?()
A.BigDog() { super(); this(); } B.BigDog() { String name = "Fido"; super(); } C.BigDog() { super(); String name = "Fido"; } D.private BigDog() { super();}
对于如下代码,描述正确的是哪项? () class Student{ public static vo...
对于如下代码,描述正确的是哪项? () class Student{ public static void main(String[] args){ Student student = new Student(); } }
A.Student student 声明了一个类 B.new Student()创建了Student 对象的一个实例 C.Student student 声明了对象Student 的一个引用 D.class Student 声明了一个类
现有2 个文件: 1. package x; 2. public class X { 3. public...
现有2 个文件: 1. package x; 2. public class X { 3. public static void doX() { System.out.print("doX "); } 4. } 和: 1. class Find { 2. public static void main(String [] args) { 3. //insert code here 4. } 5. } 哪两行分别插入到类Find 的第3 行将编译并产生输出“doX”? ()
A.doX(); B.X.doX(); C.x.X.doX(); D.x.X myX = new x.X(); myX.doX();