Home > DeveloperSection > Interviews > How are Observer and Observable used?

Posted on    August-26-2014 12:01 AM

 Java Java 
Ratings:
 1 Answer(s)
  655  View(s)
Rate this:

Sumit Kesarwani

Total Post:782

Points:3910
Posted on    August-26-2014 12:00 AM

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.


Don't want to miss updates? Please click the below button!

Follow MindStick