Java overloading and overriding
问题 We always say that method overloading is static polymorphism and overriding is runtime polymorphism. What exactly do we mean by static here? Is the call to a method resolved on compiling the code? So whats the difference between normal method call and calling a final method? Which one is linked at compile time? 回答1: Method overloading means making multiple versions of a function based on the inputs. For example: public Double doSomething(Double x) { ... } public Object doSomething(Object y) {