Why can’t we override static methods in Java?

Java 8Object Oriented ProgrammingProgramming

Overloading is the mechanism of binding the method call with the method body dynamically based on the parameters passed to the method call.

Static methods are bonded at compile time using static binding. Therefore, we cannot override static methods in Java.

raja
Updated on 30-Jul-2019 22:30:20

Advertisements