Why Wait and Notify is in Object Class in Java

Tutorials Shared by the Internet Community

Advertisements


Synopsis

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

Statistics

  • Total Hits - 27420

  • Total Votes - 724 votes

  • Vote Up - 94 votes

  • Vote Down - 630 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 ...


Site  |   Broken  |   Tweet  |   Facebook  |     |   Save  |   Liked  |   Down

Advertisements