Singleton Design Pattern
Introduction
This pattern is used when we have to create only 1 instance of the class
There are 6 ways to achieve this
Eager
Lazy
Synchronized Method
Double locking
Bill Pugh
Enum
6 Ways of Singleton Pattern
I Eager Initialization
In this app...
chetan77.hashnode.dev6 min read