Which of these method wakes up the first thread that called wait()?
(a) wake()
(b) notify()
(c) start()
(d) notifyAll()
The question was asked in an online interview.
My question comes from Creating Threads in section Multithreading of Java
Select the correct answer from above options