Qus:    What is the purpose of wait() method in Java?
Nov 23, 2021 06:03 1 Answers Views: 32 RITA
Prev Next
Answers (1)
SANJAY Dec 21, 2021 05:16
Answer:   The wait() method is defined in Object class which is the super most class in Java. This method tells the calling thread (Current thread) to give up the lock and go to sleep until some other thread enters the same monitor and calls notify() or notifyAll().

Post Your Answer
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.


Let`s Connect