Google News
logo
Java Constructor - Interview Questions
Why constructors cannot be final in Java?
When you set a method as final, then” The method cannot be overridden by any class”, but Constructor by JLS ( Java Language Specification ) definition can’t be overridden. A constructor is not inherited, so there is no need for declaring it as final.
Advertisement