1.

Which of these method is used to tell the calling thread to give up monitor and go to sleep until some other thread enters the same monitor?

A. wait()
B. notify()
C. notifyAll()
D. sleep()
Answer» B. notify()


Discussion

No Comment Found