Method overloading in java is static polymorphism or dynamic polymorphism?
both are true
Method overloading or function overloading is an example of static [or] compile time polymorphism, because the binding between function call and function body will be done by compiler based on the parameters passed in it.
Since binding (or) mapping between function call and function body is done at compile time, so it is static polymorphism.
Back To Top