"kaylan v" Welcome to the JavaRanch! Please adjust your displayed name to match the JavaRanch Naming Policy, particularly this section: "For your publicly displayed name, use a first name, a space, and a last name." You can change it here. Thanks! and again welcome to the JavaRanch!
Dirk Schreckmann
Sheriff
Joined: Dec 10, 2001
Posts: 7023
posted
0
kalyan, If you were to make the constructor(s) unavailable, the class would then be un-subclassable. Instances of the class could still be obtained through some static method. A class based on the singleton pattern, might choose to make it's contructor(s) private, and then control the any instance creation of the class through a static method (often named getInstance).