Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


Why Wait and notify are kept in Object class although they
are used only with Thread Class

Answers were Sorted based on User's Feedback



Why Wait and notify are kept in Object class although they are used only with Thread Class..

Answer / srinivas

Since the locking mechanism happens at the Object level so
they are in Object Class.

Is This Answer Correct ?    21 Yes 4 No

Why Wait and notify are kept in Object class although they are used only with Thread Class..

Answer / chandrasekhar

wait(),notify() are worked on the objects to control the
multiple thereads,not on theread.Hence these methods are
difined object class.

Is This Answer Correct ?    14 Yes 8 No

Post New Answer

More Core Java Interview Questions

what is predefined function in java?

0 Answers  


What is the difference between a choice and a list?

0 Answers  


can you use the two main method in same class?how?

4 Answers   DELL, Geosoft, SparkTG,


What is listnode in java?

0 Answers  


what is aggregation in java?

0 Answers   IBS,


Why is java called java?

0 Answers  


how to compile jsp?

4 Answers   Logica CMG,


What is a 16 bit word?

0 Answers  


Why is singleton instance static?

0 Answers  


How do you stop a thread in java?

0 Answers  


How many threads can I run java?

0 Answers  


explain the concept of virtual method invocation in polymorphism in detail?

0 Answers   TCS,


Categories