Question discussion

Which among the following is an example of compile-time polymorphism in Java?

358838Medium DSSSB TGT Computer Science 0 replies 0 views
0
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!