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 / guest

Objects that subclass the Observable class maintain a list
of observers. When an Observable object is updated it
invokes the update() method of each of its observers to
notify the observers that it has changed state. The
Observer interface is implemented by objects that observe
Observable objects.

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 tcp ip in java?

1086


What happens when a thread cannot acquire a lock on an object in java programming?

991


What is use of inner class in java?

1116


What is immutable data?

1036


Are the imports checked for validity at compile time? Will the code containing an import such as java.lang.abcd compile?

1083


Explain wrapper classes in java?

972


In which language java is written?

957


What is ‘is-a ‘ relationship in java?

999


What is meant by main method?

1044


How many types of threads are there in java?

1042


Why java is considered dynamic?

1145


What is meant by data hiding in java?

1120


What are the two environment variables that must be set in order to run any java programs?

949


How does regex work?

938


What is an accessor?

1662