How are Observer and Observable used?

How are Observer and Observable used?

Renuka
Views: 558 | Community Opinion: 1

Tags..  Observer  Java Interview

Bookmark this page..



Ask a New Question Go to Home

Community Opinion/Answers
 
Gilly Said..

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.






What do you think? Add your opinion/answer
*Name
*your opinion/answer: