A Complete Guide on Singleton Design Pattern in Java

Design patterns are always popular among programmers. This article talks about what many consider the simplest yet one of the most controversial design patterns — The Singleton Pattern

Somnath Musib
The Startup

--

Overview of Design Patterns

In software engineering, design patterns describe how to solve recurring design problems to design flexible and reusable object-oriented applications. There are a total of 23 design patterns and they are classified into three distinct categories — Creational, Structural and Behavioral.

Creational design patterns

These are the patterns that deal with object creation mechanisms, trying to create objects in a manner suitable to the situation.

The basic form of object creation could result in design problems or added complexity to the design. Creational design patterns solve this problem by somehow controlling this object creation.

Structural Design Patterns

These design patterns deal with class and object composition. This category let us assemble objects and classes into the larger structure while keeping the structure…

--

--

Somnath Musib
The Startup

Software Developer, Cloud Architect | Author "Spring Boot In Practice" . Find more at https://musibs.github.io