| 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
|
 |
 |
|
|
subject: Why wait() and notify() methods are in Object class?
|
|
|