Examveda
Examveda

In method overloading, can methods have the same name and the same return type if their parameter types are different?

A. Yes, as long as the methods are final

B. Yes, as long as the methods are static

C. No, it is not allowed

D. Yes, it is allowed

Answer: Option D


This Question Belongs to Java Program >> Overriding And Overloading

Join The Discussion

Related Questions on Overriding and Overloading