Java 8 Archive

Strategy Design Patterns using Lambda

Strategy Design Patterns We can easily create a strategy design pattern using lambda. To implement this pattern we will be using Interfaces and classes. The interface declares a behaviour and concrete classes define the behaviour. …

Decorator Pattern using Lambda

Decorator Pattern A decorator pattern allows a user to add new functionality to an existing object without altering its structure. Example But rather than being a decorator, this pattern looks ugly. Using Lambda makes creating …

Delegating pattern using lambda

Delegating pattern In software engineering, the delegation pattern is an object-oriented design pattern that allows object composition to achieve the same code reuse as an inheritance. In delegation, an object handles a request by delegating …

Java 8 Features and Improvement

Java 8 is a revolutionary release of the world’s no.1 development platform. Java 8 is a massive upgrade from the previous Java programming model. It is an enhanced, coordinated advancement of the previously available JVM, …