How can we overload or override static methods in java?
Vishalini.R Answered question May 29, 2023
No, we cannot override static methods since dynamic binding at runtime is required for method overriding, whereas static binding occurs at compile time for static methods.
We are unable to override static methods as a result.
The static methods are bonded using static binding at compile time, while method overriding is based on dynamic binding at runtime.
Static methods cannot be overridden, therefore.
Vishalini.R Answered question May 29, 2023
