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 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 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.
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.
A.true true B.false true C.true false D.false false E.Compilation fails. F. An exception is thrown at runtime.