Home > Java Programming > Threads > Questions and Answers
Q: |
Which two statements are true? 1. Deadlock will not occur if wait()/notify() is used 2. A thread will resume execution as soon as its sleep duration expires. 3. Synchronization can prevent two objects from being accessed by the same thread. 4. The wait() method is overloaded to accept a duration. 5. The notify() method is overloaded to accept a duration. 6. Both wait() and notify() must be called from a synchronized context. | ||||||||||
|
Comment on this Question | |
Name: | |
|