胡一搏 发表于 2013-8-16 16:20:56

[Oracle interview]How are Observer and Observable used?

费庆龄 发表于 2013-8-16 16:25:48

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]
查看完整版本: [Oracle interview]How are Observer and Observable used?