S

Sandhya Thakur • 4.08K Points
Extraordinary

Q. 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
  • Correct Answer - Option(D)
  • Views: 26
  • Filed under category JAVA

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.


Question analytics