Can you make Static Constructor in Java?

Java does not permit to declare a constructor as static. Following are the reasons. 1. Static means for the same class. For example, static methods cannot be inherited. 2. With static, "this" reference (keyword) cannot be used. "this" is always linked to an object. A constructor always belongs to some object. 3. If a constructor …

Can you make Static Constructor in Java? Read More »