Question d’entretien chez Dailymotion

Can we have a private constructor in Java and why do we want to do that?

Réponse à la question d'entretien

Utilisateur anonyme

31 juil. 2015

Yes. There are different uses of this. One such use is for the singleton design anti-pattern.

1