I refer to some java tutorials and found java having two types of polymorphism.
- compile-time polymorphism(Static polymorphism)
- runtime polymorphism(Dynamic polymorphism)
some learning references are mentioned "If you overload a static method in Java, it is the example of compile-time polymorphism". and some are mentioned "Method overloading is an example of compile-time polymorphism".
what I want to know is if only static method overloading or every method overloading is the java compile-time polymorphism.?
Because when reading the first point I'm feeling why static method specially mentioned and why not instance methods and constructors are not mentioned.
Thanks