Examveda
Examveda

In method overriding, is it mandatory for the method name in the subclass to be the same as the method name in the superclass?

A. It depends on the access modifier

B. It depends on the return type

C. No, it can be different

D. Yes, it must be the same

Answer: Option D


This Question Belongs to Java Program >> Overriding And Overloading

Join The Discussion

Related Questions on Overriding and Overloading