Design Patterns - Singleton (in Java)
Definition
A class should have only one instance and that should be accessible globally.
This is a Creational Design Pattern.
Idea Behind Singleton Design Pattern
Limit object creation by making the constructor private
Expose a public static method...
shikhorroy.hashnode.dev3 min read