单项选择题
Given that t1 is a reference to a live thread, which is true?()
A.The Thread.sleep() method can take t1 as an argument.
B.The Object.notify() method can take t1 as an argument.
C.The Thread.yield() method can take t1 as an argument.
D.The Thread.setPriority() method can take t1 as an argument.
E.The Object.notify() method arbitrarily chooses which thread to notify.
相关考题
-
单项选择题
Given: What is the result?()
A.Compilation fails.
B.After line 15, the value of age is 5.
C.After line 15, the value of age is 3.
D.An exception is thrown at runtime. -
单项选择题
Given that the current directory is empty, and that the user has read and write privileges to the current, and the following: Which statement is true?()
A.Compilation fails.
B.Nothing is added to the file system.
C.Only a new file is created on the file system.
D.Only a new directory is created on the file system.
E.Both a new file and a new directory are created on the file system. -
单项选择题
Given: What is the result?()
A.true true
B.false true
C.true false
D.false false
E.Compilation fails.
F. An exception is thrown at runtime.
