Google News
logo
Java Constructor - Interview Questions
Why constructors in Java cannot be static?
The constructors cannot be static in Java. When we declare a method as static, it means the method belongs to the class and not to a specific object. But the constructor is always invoked to the reference of objects. So, there is no sense in making a constructor static.
Advertisement