What is singleton class ?
The Singleton is a Design Pattern for allowing onlyone instance of your class.
The Singleton's mainpurpose is to control object creation upto one.
It is good for threading problems, because we are surethat there is only one instance of the class.