多项选择题
Given: Which two statements are true?()
A.The output could be 8-1 7-2 8-2 7-1 B.The output could be 7-1 7-2 8-1 6-1 C.The output could be 8-1 7-1 7-2 8-2 D.The output could be 8-1 8-2 7-1 7-2
Given: What is the result?()A.Compilation fails.B.An e...
单项选择题
Given: What is the result?()
A.Compilation fails. B.An exception is thrown at runtime. C.The code executes and prints "running". D.The code executes and prints "runningrunning". E.The code executes and prints "runningrunningrunning".
Given that t1 is a reference to a live thread, which is...
单项选择题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.Afte...
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.