Dailymotion interview question

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

Interview Answer

Anonymous

31 Jul 2015

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

1