Design pattern Series

Home/Tag: Design pattern Series

Abstract Factory Design Pattern in Java

Abstract Factory Design pattern comes under the creational patterns and it shows many similarities to the Factory Pattern. The abstract factory works as a factory of factories which generates other factories by providing an extra abstraction layer. The generated factory from an abstract factory pattern always generates the object as per the factory design pattern. In other words, We can [...]

By |2020-01-24T03:17:03+00:00January 24th, 2020|Categories: Java™|Tags: , |

Singleton Design Pattern in Java with a real-world example

Singleton works on the concept of one and only one instance of the object, which results in the global control of a resource. In simple words, the Singleton design pattern ensures that only one instance of the class will be created and that instance will have global access within the application. Singleton Design pattern is the most extensively used design [...]

By |2020-01-18T02:31:43+00:00January 18th, 2020|Categories: Java™|Tags: |

Factory Design Pattern in Java with a real-world example

The Factory design pattern is a part of the creational design pattern. It works on the concept of Encapsulation by hiding the object's instantiation logic from the client. The factory Design pattern is the second most used design pattern in the creational patterns category, after the singleton pattern. The factory pattern is just opposite to the concept of the singleton [...]

By |2020-01-14T02:59:00+00:00January 14th, 2020|Categories: Java™|Tags: |

Design patterns in java.

Software Design patterns in java are a custom set of practices that are reusable and used in programming. They solve the most common design-related problems in software development. The basic idea for creating the Design patterns is creating the relationship between classes and objects in a different way resulting in fast development along with a more flexible, reusable and maintainable [...]

By |2020-01-18T02:38:06+00:00November 8th, 2019|Categories: Java™|Tags: , |