This week's book giveaway is in the Other Languages forum. We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line! See this thread for details.
What are Observer and Observable?How they are used?
SCWCD 5, SCJP 1.4, OCA (PL/SQL)
posted 9 years ago
Observer and Observable are a pair of interface and class in the java.util package to implement a general purpose Observer pattern. something similar to the event delegation model. Observable is any Object on which Observers may be registered and which notifies the registered Observers about the changes taking place in the state of the Observable. Observer is an interface which is used for implementing the action to be taken when the update is taking place on the Observable.