P

Pooja • 4.41K Points
Extraordinary

Q. In Java, can an abstract class have private methods with implementations?

  • (A) Only if the methods are marked as "final"
  • (B) Only if the methods are marked as "static"
  • (C) No, abstract classes cannot have private methods
  • (D) Yes, starting from Java 9, abstract classes can have private methods with implementations
  • 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