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...

Explain the purposes of methods wait(), notify(), notifyAll
()?

Answer Posted / tek

All the three methods are called in synchronized block or
method.

wait(): Thread calling wait method will go to the waiting
state and it will loose its monitor. It will execute only
if it is notified by the other threads.

notify(): To notify thread which is waiting for the concern
object.

notifyAll(): To notify all the threads which are in waiting
state.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What value does read() return when it has reached the end of a file?

1031


Why use POJO when I can use hashmap

2649


Difference between hashmap and hashtable?

1156


What are the diff types of exception?

1055


What value does readline() return when it has reached the end of a file?

1082


Define prototype?

1057


What is aop(assepct oriented programing)?

1057


Why use a datasource when you can directly specify a connection details? (in a J2EE application)

4272


wahts is mean by dynavalidatorform in struts/

2068


Which class is the immediate superclass of the menucomponent class?

1200


To what value is a variable of the string type automatically initialized?

1134


What if the static modifier is removed from the signature of the main method?

1240


Explain what is synchronization?

1094


Where we can write Rmi registry in the code, without having to write it at the command prompt?

2771


Describe activation process?

2657