65. (判断题)成员变量的名字不可以和局部变量的相同。
解析:null
单选题
https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-8fc8-c04c-ee30166b1a03.html
点击查看答案
5. (单选题)Outer类中定义了一个成员内部类Inner,需要在main()方法中创建Inner类实例对象,以下四种方式哪一种是正确的?( )
A. Inner in = new Inner()
B. Inner in = new Outer.Inner();
C. Outer.Inner in = new Outer.Inner();
D. Outer.Inner in = new Outer().new Inner();
https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b7a-56a0-c04c-ee30166b1a00.html
点击查看答案
15. (单选题)以下选项中,switch语句判断条件不能接收的数据类型是( )。
A. int
B. byte
C. char
D. Double
https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b79-f110-c04c-ee30166b1a00.html
点击查看答案
54. (判断题)String是基本数据类型。
https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-87f8-c04c-ee30166b1a02.html
点击查看答案
4.}
将以下哪种方法插入行3是不合法的。( )
A. public float aMethod(float c,float d){ }
B. private float aMethod(int a,int b,int c){ }
C. public float aMethod(float a, float b,float c){ }
D. public int aMethod(int a, int b){ }
https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-bea8-c04c-ee30166b1a02.html
点击查看答案
5. (判断题)Java程序里,创建新的类对象用关键字new,回收无用的类对象使用关键字free。
https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b7a-9138-c04c-ee30166b1a03.html
点击查看答案
17. (单选题)
A. ==
B. instanceof
C. 以上都对
D. equal
https://www.shititong.cn/cha-kan/shiti/0005e1b4-86b7-bac0-c04c-ee30166b1a00.html
点击查看答案
19. (单选题)以下标识符中错误的是( )。
A. MyJava
B. $abc
C. 78Java
D. _123
https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b79-f4f8-c04c-ee30166b1a01.html
点击查看答案
7. (判断题)类中static修饰的变量或方法,可以使用类名或对象的引用变量访问。
https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b7a-4700-c04c-ee30166b1a01.html
点击查看答案
17. (单选题)如下定义数组,操作正确的是( )。 int a[]={1,2,3};
A. a[3]=100
B. a[0].length
C. a++
D. a.length
https://www.shititong.cn/cha-kan/shiti/0005e1b3-7b7a-27c0-c04c-ee30166b1a00.html
点击查看答案