Flyweight Pattern
Flyweight is a structural pattern that is used to reduce the number of objects created and to decrease memory footprint and increase performance. Flyweight tries to …
Decorator Pattern
Decorator is a structural pattern that allows a user to add new functionality to an existing object without altering its structure. This pattern creates a decorator …
Memento Pattern
Memento is a behavioral pattern that is used to restore state of an object to a previous state. Memento pattern uses three actor classes. Memento class …
Introduction to Spring Integration
Spring Integration provides an extension of the Spring programming model to support the well known Enterprise Integration Patterns. It embodies some of the finest and most …
Iterator Pattern
Iterator Pattern is a behavioral pattern which is used to get a way to access the elements of a collection object in sequential manner without any …
Prototype Pattern
Prototype Pattern is a creational pattern which refers to creating duplicate object while keeping performance in mind. This pattern involves implementing a prototype interface which tells …
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 …