0 votes
in JAVA by
Define Singleton Classes in Java.

1 Answer

0 votes
by

In Java, when you make the constructor of a class private, that particular class can generate only one object. This type of class is popularly known as a Singleton Class.

Related questions

0 votes
asked Aug 21, 2022 in JAVA by sharadyadav1986
0 votes
asked Aug 21, 2022 in JAVA by sharadyadav1986
...