0 votes
in JAVA by
What is singleton class in java?

1 Answer

0 votes
by

The singleton design pattern is used to restrict the instantiation of a class and ensures that only one instance of the class exists in the JVM. In other words, a singleton class is a class that can have only one object (an instance of the class) at a time per JVM instance.

Related questions

0 votes
asked Jan 24, 2020 in JAVA by rahuljain1
0 votes
asked May 7, 2021 in JAVA by sharadyadav1986
...