Interviews3 answers
What is a singleton class in Java
3 Answers
It is one of the design pattern which created one instance for JVM. If you created multiple objects it will consume a lot of memory. Let us suppose we do not require multiple objects then using singleton class.
Gude VenkataRaoPosted Sep 3, 2018, 6:43 AM EDT
Singleton class is class in which only one object make in its life cycle
Ravi PrajapatiPosted Dec 27, 2014, 3:50 AM EST
http://www.javaworld.com/article/2073352/core-java/simply-singleton.html
Munesh SharmaPosted Apr 15, 2014, 12:46 AM EDT
