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

How are Observer and Observable used?

Answer Posted / supriya

Subclass of Observable class maintain a list of observers.
Whenever an Observable object is updated, it invokes the
update() method of each of its observers to notify the
observers that it has a changed state.
An observer is any object that implements the interface
Observer.

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the range of a character variable?

975


What are pass by reference and pass by value?

980


Can singleton class be inherited in java?

979


Explain about fail fast iterators in java?

1042


What is the use of pattern in java?

1044


How many boolean functions are there?

943


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

961


How do you use equal in java?

1053


What is the purpose of a default constructor?

1081


How to make a class or a bean serializable?

954


What is the intersection and union methods?

1008


What is backdrop?

1050


What is toarray method in java?

1078


What is Major and importance difference between for and foreach loop ?

1119


What is the difference between Error, defect,fault, failure and mistake?

1184