标题: [Oracle interview]How are Observer and Observable used? [打印本页] 作者: 胡一搏 时间: 2013-8-16 16:20 标题: [Oracle interview]How are Observer and Observable used? 作者: 费庆龄 时间: 2013-8-16 16:25
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.