Java Threads Question:

Download Job Interview Questions and Answers PDF

What is the purpose of the wait(), notify(), and notifyAll() methods?

Java Threads Interview Question
Java Threads Interview Question

Answer:

The wait(), notify() and notifyAll() methods are used to provide an efficient way for thread inter-communication.

Download Java Threads Interview Questions And Answers PDF

Previous QuestionNext Question
What invokes a threads run() method?What is thread? What are the high-level thread states?
Or
What are the states associated in the thread?