Which among the following is an example of compile-time polymorphism in Java?
- AMethod overriding
- BInterfaces
- CAbstract classes
- DMethod overloading
Correct answer: D
Explanation
Method overloading is resolved at compile time and is called compile-time (static) polymorphism. Overriding is runtime polymorphism. Discussion 0
Nobody has replied yet. Start the discussion!