Multiple Choice
When a thread obtains the monitor lock on an object, then determines that it cannot continue with its task on that object until some condition is satisfied, the thread can call Object method ________; this releases the monitor lock on the object, and transitions the thread waits to the waiting state.
A) waitForOtherThreads
B) stop
C) waitForCondition
D) wait
Correct Answer:

Verified
Correct Answer:
Verified
Q20: Which of the following statements is false?<br>A)
Q21: Which of the following statements is false?<br>A)
Q22: Class Instant's static method _ gets the
Q23: The main method executes in the _
Q24: Which of the following statements is false?<br>A)
Q26: Which of the following statements is false?<br>A)
Q27: Streams are easy to parallelize, enabling programs
Q28: To obtain a parallel stream, simply invoke
Q29: Which of the following statements is false?<br>A)
Q30: In a producer/consumer relationship, the _ portion