Java Singleton Class

Singleton class is a class that can have only one instance. if you create new instance it will also points to first instance. to design singleton class