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
Published on 08-Jan-2018 12:49:45
Advertisements