Why Wait and Notify is in Object Class in Java

Tutorials Shared by the Internet Community

Advertisements

  Top Tutorials     New Tutorials     Submit     Login     Register  

Tutorial Detail

Why Wait and Notify is in Object Class in Java

Wait and notify method are used to put thread on wait but they are not in Thread class alongwith Sleep() or Join() method instead they are declared in
http://javarevisited.blogspot.com/2012/02/why-wait-notify-and-notifyall-is.html
  • Total Hits: 19685

  • Average Rating :
    URL RatingURL RatingURL RatingURL RatingURL Rating

  •  

  • Total Votes: 750 votes

  • Category: JAVA/Core JAVA

  • Submitted on: 2012-02-12 04:23:08

  • Submitted By: Javin Paul

  • Set as Favorite

Description:

Wait and notify method are used to put thread on wait but they are not in Thread class alongwith Sleep() or Join() method instead they are declared in Object class. This article has few reasons which make sense on Why Wait and Notify is in Object Class in Java    More detail...

Rating Detail

 Stars  Percentage  Total Vote
 One star  Vote LeftVote MiddleVote Right 81.73%  613
 Two starsTwo star  Vote LeftVote MiddleVote Right 2.13%  16
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 2.8%  21
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 2.53%  19
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 10.8%  81

Caste Your Vote

 Rating  Selection  Guidelines
 Poor:     Very disappointing, useless.
 Fair:     Below average, disappointing but not useless.
 Good:     About average in its class.
 Very Good:     Above average for its category.
 Excellent:     One of the best Tutorials in its category.






Advertisements