单选多选判断简答
1、下面那些是Thread类的方法()
A 、start() B、run() C、exit() D、getPriority()
2、下面关于java.lang.Exception类的说法正确的是()
A、继承自Throwable B、Seriable C、getPriority() D、以上都不正确
3、下面程序运行结果是()
String str1 = "hello"
String str2 = "he" + new String("llo");
System.err.println(str1 == str2);
4、下列说法正确的有()
A、 class中的constructor不可省略
B、constructor必须与class同名,但方法不能与class同名
C、constructor在一个对象被new时执行
D、一个class只能定义一个constructor
5、GC线程是否为守护线程?()
6、volatile关键字是否能保证线程安全?()