Behavioral Patterns

Patterns for assigning responsibilities and organizing communication between objects.

Behavioral patterns deal with algorithms and with how responsibility is shared between objects: who decides, who reacts, and how variation is plugged in. The GoF catalogue contains eleven. All eleven are published, each with a runnable Java 21 example. Strategy vs State vs Template Method and Observer vs Mediator vs Event Bus compare the ones most often confused.

Articles