DEV Community

Cover image for Observer Pattern | Design Patterns in Java
coder4life
coder4life

Posted on

3

Observer Pattern | Design Patterns in Java

Behavioral design pattern: Watch a Java implementation of the Observer Pattern. An observable ("Weather" object in example) is an object which notifies observers ("Person" objects in example) about the changes in its state.

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more