In this example, we shall be discussing about the java.util.Observer interface. The Observer interface is used to notify “Observers” of the changes made to the Obervable. It is mainly used to implement the Observer Pattern in Java. It has been around since Java 1. The Observer interface has only one method, void update(Observable o, Object […]