Vidyalelo
Java Programming · Q79

Constructors and Methods

Programming · Java Programming · question 79

Q79

What is true about private constructor?

A.
Private constructor ensures only one instance of a class exist at any point of time
Answer
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

Solution

Answer: Option A
No explanation is given for this question Let's Discuss on Board