What is a Singleton Class in Java ?

A Singleton class in Java has maximum one instance of the class present in JVM, all the time. The constructor of this class is written in such a way that it never creates more than one object of same class.



You May Interest

Comparing HashSet and TreeSet Collections in Java

What is the Use of Run Time Polymorphism in Java ?

What is the Lifecycle Stages of JSP ?

What is the Difference Between a Nested Class and an Inner Class ...

What is the Difference Between wait and sleep Methods in Java ?