Singleton Design Pattern
The Singleton pattern assures that a class has only one instance and provides a global point of access for it. Sometimes, singleton patterns is considered as the antipattern because high usage of this can have more cons than the pros. There are two types of singleton pattern: Key points of singleton pattern Singleton Class Java … Read more