Which two CANNOT directly cause a thread to stop executing?()
ACalling the yield method.
BCalling the wait method on an object.
CCalling the notify method on an object.
DCalling the notifyAll method on an object.
ECalling the start method on another Thread object.
相关问题推荐
-
计算机感染特洛伊木马后的典型现象是(45)。
A.程序异常退出
B.有未知程序试图建立网络连接
C.邮箱被垃圾邮件填满
D.Windows系统黑屏
-
public class test ( private static int j = 0; private static boolean methodB(int k) ( j += k; return true; ) public static void methodA(int i) { boolean b: b = i
A、 The program prints “0”
B、 The program prints “4”
C、 The program prints “8”
D、 The program prints “12”
E、 The code does not complete.
-
Which determines if “prefs” is a directory and exists on the file system?()
A、 Boolean exists=Directory.exists (“prefs”);
B、 Boolean exists=(new File(“prefs”)).isDir();
C、 Boolean exists=(new Directory(“prefs”)).exists();
D、 Boolean exists=(new File(“prefs”)).isDirectory();
E、 Boolean exists=true; Try{ Directory d = new Directory(“prefs”); } catch (FileNotFoundException e) { exists = false; }
-
25.intx=12; 26. while (x
A、 0
B、 10
C、 12
D、 Line 29 will never be reached.
-
Which two are valid declarations within an interface definition?()
Avoid methoda();
Bpublic double methoda();
Cpublic final double methoda();
Dstatic void methoda(double d1);
Eprotected void methoda(double d1);