What is the wait() method?
Are you preparing for IT certification? With practice questions, study notes, interactive quizzes, tips and technical articles, uCertify PrepKits ensure that you get a solid grasp of core technical concepts to ace your certification exam in first attempt.
What is the wait() method?
Rating:
The wait() method is final and belongs to the Object class. It provides a way for a shared object to pause a thread when it becomes unavailable to that thread. This method is called in the synchronized context and can only be called on a thread when it holds a lock.
Rating:
Was this information helpful?
Other articles
- Things to practice for Sun test CX310-036.
- What is the String + operator?
- What is inheritance?
- What is the parseInt() method?
- String, StringBuffer and StringBuilder classes