Answer:
When we create a private constructor, we cannot create object of the class directly from a client. Therefore, you will use private constructors when you do not want instances of the class to be created by any external client.
Asked In: Many Interviews |
Alert Moderator