Java Threads Question:
Why are wait(), notify() and notifyall() methods defined in the Object class?

Answer:
These methods are detailed on the Java Software Development Kit JavaDoc page for the Object class, they are to implement threaded programming for all subclasses of Object.
Previous Question | Next Question |
What is threaded programming and when is it used? | Why are there separate wait and sleep methods? |