in JAVA by
Define Singleton Classes in Java.

1 Answer

0 votes

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 May 5, 2021 in JAVA by SakshiSharma
0 votes
asked May 18, 2020 in JAVA by AdilsonLima
0 votes
asked Oct 17, 2019 in Design Patterns by Robin