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

Can I run seam with jdk 1.4 and earlier?

984


Can I use multiple html form elements with the same name?

1039


Define aop(assepct oriented programing)?

1150


What restrictions are placed on the values of each case of a switch statement?

1000


Do we need to override service() method

1712


Why are my checkboxes not being set from on to off?

1127


difference between  ejb,struts,hibernate,spring and jsp

2842


What is JTS?

2357


Difference between loadclass and class.forname?

1037


What is synchronization and why is it important?

1094


What do you know about seam?

1031


What is the relationship between the canvas class and the graphics class?

1029


Describe, in general, how java's garbage collector works?

1014


How is a java object message delivered to a non-java client?

1037


Is there a guarantee of uniqueness for entity beans?

993