Examveda
Examveda

In method overriding, is it mandatory for the return type of the subclass method to be the same as the superclass method?

A. Yes, it must be the same

B. No, it can be different

C. It depends on the access modifier

D. It depends on the method name

Answer: Option A


This Question Belongs to Java Program >> Overriding And Overloading

Join The Discussion

Related Questions on Overriding and Overloading