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

When Will You Use Strategy Design Pattern in Java ?

What is the Difference Between pass by reference and pass by valu ...

Why Do We Use JSP Instead of Servlet in Java ?

How Will You Use Other Java Files of Your Application in JSP Code ...

How Will You Handle InterruptedException in Java ?