title: What is advantage of Singleton class?
body: <p>In java when we create a class singleton it create only one instance of that class per application, but rather than creating singleton class if we create all the methods and variables of that class static then also it will create only one instance of that static members. Then what is advantage of singleton  class over all static members of class?</p>