Question

What is the primary difference between an abstract class and an interface in Java regarding abstraction?

A Abstract classes can have constructors, while interfaces cannot.
B Abstract classes can achieve 100% abstraction, while interfaces can only achieve partial abstraction.
C Interfaces can have concrete methods, while abstract classes cannot.
D A class can implement multiple abstract classes but can only extend one interface.
E Abstract classes are used for data hiding, while interfaces are for method signatures.
Practice Next

Hey! Ask a query