Singleton – What it is and why is Singleton ?
Apr 24th, 2009 | By admin | Category: JavaSometimes it’s the requirement of the application to maintain only one instance of a class . This instance will be accessed throughout the a software life cycle of the application.This type of classes are called Singleton class.
Typical examples could be ,Logger,Print spoolers,Connection pool etc.
Singleton is ideal if an application developer wants to make sure only [...]