In Java, can an abstract class have default methods with implementations?
A. No, abstract classes cannot have default 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, abstract classes can have default methods with implementations
Answer: Option D

Join The Discussion