Design pattern examples in Java Creational patterns Factory method Abstract factory Singleton Structural patterns Adapter Composite Façade Decorator Behavioral patterns Iterator Observer State