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

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

how does multithreading take place on a computer with a single cpu? : Java thread

1146


What is the arraylist in java?

1053


What sorting algorithm does javascript use?

984


What does it mean that a method or field is “static”?

975


Explain the difference between abstraction and encapsulation.

978


What is the hashcode () and equals () used for?

1036


What is java thread dump, how can we get java thread dump of a program?

1001


Why we use methods in java?

993


How are observer and observable used in java programming?

1029


Write a java program to find the route that connects between Red and Green Cells. General Rules for traversal 1. You can traverse from one cell to another vertically, horizontally or diagonally. 2. You cannot traverse through Black cells. 3. There should be only one Red and Green cell and at least one of each should be present. Otherwise the array is invalid. 4. You cannot revisit a cell that you have already traversed. 5. The maze need not be in the same as given in the above example

2600


Where are the card layouts used?

1068


What is integer valueof?

1107


What is the simpletimezone class in java programming?

1130


Write a program to show whether a graph is a tree or not using adjacency matrix.

1096


What is a ternary operator in java?

980