What are the Examples of Observer Design Pattern in JDK ?

In JDK there are many places where Observer design pattern is used. Some of these are..

1 - java.util.Observer, java.util.Observable

2 - javax.servlet.http.HttpSessionAttributeListener

3 - javax.servlet.http.HttpSessionBindingListener

4 - All implementations of java.util.EventListener, and also in Swing packages

5 - javax.faces.event.PhaseListener



You May Interest

How Can We Improve the Performance of IdentityHashMap in Java ?

What are the Thread-safe Classes in Java Collections Framework ?

What are the Atomic Operations in Java ?

What is the Difference Between init-param and context-param in JS ...

What is the Difference Between Fail-fast and Fail-safe Iterator i ...