[Oracle interview]How are Observer and Observable used?
Objectsthat subclass the Observable class maintain a list of observers. When anObservable object is updated it invokes the update() method of each of itsobservers to notify the observers that it has changed state. The Observerinterface is implemented by objects that observe Observable objects.
页:
[1]