What is singleton class in Java?

: 572
Paper : Java FAQ (Frequently Asked Questions and answers) for freshers | Platform : Object-oriented programming Language | Category : Programming FAQs

A class that has one instance is called the singleton class. All its variables and methods belong to that one instance of the class only. The concept is useful where there is a need to limit the instance of the class.