A

Admin • 831K Points
Coach

Q. What is the difference between method overloading and method overriding in Java?

  • (A) Method overloading only works with static methods, while method overriding works with instance methods
  • (B) Method overloading is not allowed in Java, while method overriding is a required feature
  • (C) Method overloading involves multiple methods with the same name in the same class, while method overriding involves redefining a superclass method in a subclass
  • (D) Method overloading involves creating new methods in a subclass, while method overriding involves hiding superclass methods
  • Correct Answer - Option(C)
  • Views: 39
  • Filed under category Java
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.