What is the singleton class in java?
A singleton is a class for which only one instance can exist within a program. In other words, only one, single object of that particular class can be created in a program.