Java 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, …

Java 9 features and improvements

In this article, we will discuss newly added Java 9 features. Oracle has released Open JDK 9 with the several new features and improvements on July 27, 2017. Java 9 brings outstanding improvements and new …