Java IQ #59 - Why are private constructors used

preview_player
Показать описание
We know that constructors are typically public ( even though we don't explicitly declare them public ). But, can we have private constructors ? If so, why even have them private ?

#campushire #javafullstackdevelopercourse #javainterviewquestions #javaplacementcourse #campushire_india
Рекомендации по теме