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 the difference between heap and stack memory?

0 Answers  


what is mean by method signature?

8 Answers   Satyam,


Write the algorithm to check the number non-leaf nodes in a tree.

0 Answers   Amdocs,


What is a super class and how super class be called?

3 Answers  


What will be the output of round(3.7) and ceil(3.7)?

0 Answers  


What is volatile keyword in java

0 Answers  


What is methodological theory?

0 Answers  


Why stringbuffer is faster than string?

0 Answers  


What is array pointers ?

0 Answers   Amdocs,


which class is the wait() method defined in? : Java thread

0 Answers  


Is JRE required to compile Java files ?

4 Answers   HCL,


In what ways you can handle exception ?

3 Answers  


Categories