Working with Parallel Streams
Streams were introduced in Java 8. One of the powerful features of Streams API is that it has built-in concurrency support. Serial Stream is a stream …
Static Interface Methods
Since Java 8, authors have introduced support for static methods within interfaces. This methods are defined explicitly with the static keyword and function nearly identically to …
Default Interface Methods
With the release of Java 8, the authors of Java have introduced a new type of method to an interface, referred to as default method. A …
Singleton Pattern
Singleton Pattern is a creational pattern, one of the simplest design patterns in Java. This pattern involves a single class which is responsible for creating an …
Filter Pattern
Filter Pattern is a structural pattern that enables developers to filter a set of objects using different criteria and chaining them in a decoupled way through …
Facade Pattern
Facade Pattern is a structural design pattern that hides the complexibilities of the system and provides interface to the client using which the client can access …
Command Pattern
Command Pattern is behavioral data driven design pattern. A request is wrapped under an object as command and passed to invoker object. Invoker object looks for …
Chain Of Responsibility Pattern
Chain Of Responsibility Pattern is a behavioral pattern that creates a chain of receiver objects for a request. This pattern decouples sender and receiver of a …
Observer Pattern
Observer pattern is behavioral pattern that is used when there is one-to-many relationship between objects such as if one object is modified, its dependent objects are …
Behavioral Design Patterns
These design patterns are specifically concerned with communication between objects. List of Behavioral Design Patterns : Observer Pattern Chain Of Responsibility Pattern Command Pattern Iterator Pattern …