File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Java in General and the fly likes Why wait() and notify() methods are in Object class? Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Java in General
Reply Bookmark "Why wait() and notify() methods are in Object class?" Watch "Why wait() and notify() methods are in Object class?" New topic
Author

Why wait() and notify() methods are in Object class?

ramakrishna rayudu
Ranch Hand

Joined: Mar 08, 2011
Posts: 57
hi...

when i was interview Project Lead Asked me why wait() and notify() methods are in Object class rather then in the Thread Class??
could you please tell me is there any thing triky there??

Thanks,
Ramky
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

this question is discussed many times here. search ...
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19232

Seetharaman is right; SearchFirst, and you will find several results.


SCJP 1.4 - SCJP 6 - SCWCD 5
How To Ask Questions How To Answer Questions
Shanky Sohar
Ranch Hand

Joined: Mar 17, 2010
Posts: 1047

Yes the Question is discussed many times..
i will point a simple answers..

Its only because it applies on object.

SCJP6.0,My blog Ranchers from Delhi
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why wait() and notify() methods are in Object class?
 
Similar Threads
Interview q
Threads
wait(),notify()&notifyAll() of Object
Object Class
Object Class