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

Why are there no global variables in java?

1110


What is mean by exception?

1080


What is the purpose of the main method?

1042


What are the benefits of immutable objects?

1056


How do you declare an empty string?

1114


How do you add an element to a set in java?

1080


Why is singleton instance static?

1045


Is sizeof a keyword in java programming?

1127


Write a program to find the whether a number is an Armstrong number or not?

1077


What are the four integer types supported by java?

1099


When a thread is executing a synchronized method , then is it possible for the same thread to access other synchronized methods of an object ?

1098


What does \ mean in regex?

1325


What is the use of callablestatement?

1058


Is set ordered?

1037


What state does a thread enter when it terminates its processing in java programming?

1089