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
Answer: Option D

Join The Discussion