Switch to Dark Mode

How does Java differentiate between an interface and an abstract class?

Last Updated : May 22, 2025
Discuss
Comments

How does Java differentiate between an interface and an abstract class?

A

An interface cannot have any method implementations, but an abstract class can.

B

Abstract classes support constructors, but interfaces do not.

C

A class can implement multiple interfaces but can extend only one abstract class.

D

All of the above

Share your thoughts in the comments