Top News

Are we allowed to override a static method in Java?

 


No. Java does not allow overriding a static method. If you create a static method with same name in subclass, then it is a new method, not an overridden method.

Post a Comment

Previous Post Next Post