WHAT IS SINGLETON CLASS IN JAVA ?

Mayank Tripathi

Total Post:807

Points:4035
Posted by  Mayank Tripathi
Java 
 605  View(s)
Ratings:
Rate this:
  1. Mayank Tripathi

    Post:807

    Points:4035
    What is Singleton class in Java ?

    Singleton class is used to control no of object created for a class, limiting the number to one. But if the situation changes in future, it allows to create more objects without affecting existing clients.

Answer

NEWSLETTER

Enter your email address here always to be updated. We promise not to spam!