Examveda
Examveda

What is true about private constructor?

A. Private constructor ensures only one instance of a class exist at any point of time

B. Private constructor ensures multiple instances of a class exist at any point of time

C. Private constructor eases the instantiation of a class

D. Private constructor allows creating objects in other classes

Answer: Option A


This Question Belongs to Java Program >> Constructors And Methods

Join The Discussion

Related Questions on Constructors and Methods

What is a constructor in Java?

A. A special method to create instances of classes

B. A method used for mathematical calculations

C. A method to perform string manipulations

D. An exception handling mechanism