Hire QA – Specialized in QA Recruitment, Technical Interviews and Testing Solutions

Why Java doesn’t support multiple inheritance?

Category: Java

Java doesn’t support multiple inheritance in classes because of “Diamond Problem”.
However multiple inheritance is supported in interfaces. An interface can extend multiple interfaces because they just declare the methods and implementation will be present in the implementing class. So there is no issue of diamond problem with interfaces.

Leave a Reply

Your email address will not be published. Required fields are marked *