what is the use of private constructor in core java?
Private constructor can be used if we 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.