The notify() is used to unblock one waiting thread whereas notifyAll() method is used to unblock all the threads in waiting state.
Can you answer this question?
Write Answer1 Answers