In Java, can a subclass override a protected method from its superclass?
A. Yes, regardless of the package
B. No, protected methods cannot be overridden
C. No, protected methods are private
D. Yes, as long as it's in the same package
Answer: Option D
Join The Discussion