Why aren’t you allowed to extend more than one class in Java but are allowed to implement multiple interfaces?

Solution:

Extending classes may cause ambiguity problems. On the other hand, in terms of interfaces, the single method implementation in one class can serve more than one interfaces.

0 answers