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
Join The Discussion