关于Java语言叙述错误的是:
(A)Java语言具有跨平台性
(B)Java是一种面向对象的语言
(C)Java语言中的类可以多继承
(D)Java的垃圾收集机制自动回收程序已不再使用的对象
参考答案
继续答题:下一题


更多java基础知识试题
- 1在JAVA中ArrayList类实现了可变大小的数组,便于遍历元素和随机访问元素,已知 获得了ArrayList类的对象bookTypeList,则下列语句中能够实现判断列表中是否存在字符串“小说”的是
- 2假设A是一个抽象类,B是A的一个具体子类,A和B都有一个无参构造函数。下面()是正确的。
- 3以下代码输出结果为:class intWrap { int x;} public class Main { public static void main(String[] args) { intWrap i = new intWrap(); i.x = 10; intWrap j = new intWrap(); j.x = 20; swap(i, j); System.out.println("i.x = " + i.x + ", j.x = " + j.x); } public static void swap(intWrap i, intWrap j) { int temp = i.x; i.x = j.x; j.x = temp; }}
- 4以下代码输出结果为?class Test{ public static void main(String[] args) { StringBuffer a = new StringBuffer("Runoob"); StringBuffer b = new StringBuffer("Google"); a.delete(1,3); a.append(b); System.out.println(a); }}
- 5TextField的事件监听器接口是( )。