Examveda
Examveda

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

A. No, the method names must be different

B. Yes, it is allowed

C. No, it is not allowed

D. Yes, as long as the access modifiers are different

Answer: Option C


This Question Belongs to Java Program >> Overriding And Overloading

Join The Discussion

Related Questions on Overriding and Overloading