Examveda
Examveda

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

A. Yes, but only for static methods

B. No, it is not allowed

C. No, the methods must have different parameter types

D. Yes, but only for static methods

Answer: Option B


This Question Belongs to Java Program >> Overriding And Overloading

Join The Discussion

Related Questions on Overriding and Overloading