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

How many types of parsers are there?

960


Why string is immutable or final in java

1027


What is a java string?

991


State the main difference between c++ and java?

1034


What is the indent key?

989


Which is better arraylist or vector?

974


Differentiate between stringbuffer and stringbuilder in java.

978


What is the implementation of destroy method in java. Is it native or java code?

902


Can we use String with switch case?

1108


What are the five major types of reference sources?

1041


In how many ways we can create threads in java?

1134


What is a conditional statement explain with example?

961


What does null mean in java?

1016


Is sizeof a keyword in java programming?

1014


What happens if an exception is throws from an object's destructor?

986