Select from following answers:- public constructor
- private constructor

- default constructor
- parameter-less constructor
- All Above
private constructors are highly preferable and are used for the classes which comprises only static members.
By using 'private', we cannot call that from external methods or objects which means it doesn't allow any other class to create instance to this.
Show Correct Answer
Asked In: Spotted While Learning |
Alert Moderator