Why Wait and Notify is in Object Class in Java
Tutorials Shared by the Internet Community
Advertisements
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 inStatistics
Total Hits - 39449
Total Votes - 758 votes
Vote Up - 112 votes
Vote Down - 646 votes
Domain - javarevisited.blogspot.com
Category - JAVA/Core JAVA
Submitted By - Javin Paul
Submitted on - 2012-02-12 04:23:08
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...
Advertisements