Private constructor can be used if you do not want any other class to instantiate the class. This concept is generally used in Singleton Design Pattern. The instantiation of such classes is done from a static public method.
Java
Topic: Constructors
Where and how can you use a private constructor?
Browse random answers:
What is the difference between a constructor and a method?
Why constructor does not have return type in java?
Where and how can you use a private constructor?
What are Characteristics of constructor:?
What is Parameterized constructor?
What is copy constructor?
What is Default constructor ?
What is Dynamic constructor ?
How should a contructor handle a failure?
What is virtual constructors/destructors?