Examveda
Examveda

Can a method be both overloaded and overridden in the same class in Java?

A. Yes, as long as the method names are the same

B. Yes, as long as the access modifiers are the same

C. No, it is not allowed

D. No, method overloading and overriding are mutually exclusive

Answer: Option A


This Question Belongs to Java Program >> Overriding And Overloading

Join The Discussion

Related Questions on Overriding and Overloading