| Author |
Why Wait() and notify() methods defined in Object class?
|
Mihir Patel
Greenhorn
Joined: Apr 26, 2011
Posts: 18
|
|
Hi,
Please someone explain, why wait(), notify() and notifyAll() methods are defined in Object class rather then Thread class even though they are thread related methods?
Thanks...
|
 |
Maneesh Godbole
Saloon Keeper
Joined: Jul 26, 2007
Posts: 8430
|
|
|
Check this FAQ entry http://www.coderanch.com/how-to/java/SCJP-FAQ#notifyObject
|
[Donate a pint, save a life!] [How to ask questions] [Onff-turn it on!]
|
 |
 |
|
|
subject: Why Wait() and notify() methods defined in Object class?
|
|
|