V

Vijay Sangwan • 28.62K Points
Instructor II

Q. In Java, can an interface have static methods with implementations?

  • (A) No, interfaces cannot have static methods
  • (B) Only if the methods are marked as "private"
  • (C) Only if the methods are marked as "final"
  • (D) Yes, starting from Java 8, interfaces can have static methods with implementations
  • Correct Answer - Option(D)
  • Views: 14
  • 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