P

Praveen Singh • 36.81K Points
Coach

Q. In Java, can a subclass override a default method from its superclass?

  • (A) No, default methods cannot be overridden
  • (B) Only if the subclass is marked as "final"
  • (C) Yes, starting from Java 8, a subclass can override default methods from interfaces
  • (D) Only if the default method is marked as "static"
  • Correct Answer - Option(C)
  • Views: 27
  • 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