• Post Reply Bookmark Topic Watch Topic
  • New Topic

wait ,notify and notifyAll  RSS feed

 
ravindra patil
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
wait(),notfy() and notifyAll()
methods defined in object class, and come into picture only when we deals with Thread, i agree we have main thread eventhough class doesnt implements Runnable or extends Thread,

so whats the purpose of definfinf these methods in Object class and not in Runnable or Tread , isnt is unnecessary avilbale to anyclass in java
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
read this FAQ entry
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!