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 are various types of class loaders used by jvm?

998


Is jvm a overhead?

1102


What is ioc concept & explain it?

1085


Explain the difference between object state and behavior?

1054


What is the difference between long.class and long.type?

1109


Which are the different segments of memory?

1083


What is the difference between RMI registry and OS Agent?

1140


Can I have an action without a form?

1107


Can I use javascript to submit a form?

1146


What is the difference between java class and bean?

1085


What modifiers may be used with an inner class that is a member of an outer class?

1062


What is the relationship between an event-listener interface and an event-adapter class?

1126


Write a singleton program?

1046


What is an abstract method?

1065


What is aop(assepct oriented programing)?

1063