Java / Design Patterns
What is Observer design pattern in Java?
Observer design pattern is based on notifying the changes in the state of object to observers so that they can perform action related to the state change. An ideal example will be a stock exchange where changes in the stock price must be reflected in Views to show to public. Here stock object is subject while different views are Observers.
More Related questions...