Java · Medium
Explain the Strategy pattern. How does Java 8 simplify it with lambdas?
JavaAdvanced JavaDesign PatternsJava 8+
Answer preview
The Strategy pattern defines a family of algorithms, encapsulates each one, and makes them interchangeable. The client selects and uses a strategy without knowing its implementation.…