Which among the following is an example of compile-time polymorphism in Java?
Show answerHide answer
Correct answer: (D) Method overloading
Explanation
Method overloading (same name, different parameter lists) is resolved by the compiler, so it is compile-time (static) polymorphism. Method overriding is resolved at run time.