Home > DeveloperSection > Interviews > What are Observer and Observable ?

Posted on    July-29-2015 7:16 AM

 Java Java 
 1 Answer(s)
  400  View(s)
Rate this:

Mayank Tripathi
Mayank Tripathi

Total Post:807

Posted on    July-29-2015 7:16 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