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

Mention a package that is used for linked list class in java.

0 Answers  


what is inner class in java?

0 Answers   IBS,


What do you mean Abstraction in java?

0 Answers   Aspire, Infogain,


What data type is true or false?

0 Answers  


What is the symbol for line break?

0 Answers  


What is string buffer?

0 Answers  


What is string in java? String is a data type?

0 Answers  


Are functions objects in java?

0 Answers  


Can an interface be final?

0 Answers  


What is difference between abstract class & final class

7 Answers  


How many types of operators are there?

0 Answers  


Are the equals() and hashCode() protected methods of object class?

1 Answers   Avaya,


Categories