Java does not support diamond inheritance.

Why Java does not support diamond inheritance?

While C++ etc support multiple inheritences, Java doesn’t. What I found was-

" It is just to remove ambiguity, because multiple inheritance can cause ambiguity in few scenarios."

Refer here for a detailed explanation. Basically, the main reasons were ambiguity it caused and because it was rarely used.

Hope it helped!! :slight_smile:

@rashedcs please ask those question that you could not found on stackoverflow, Stack Exchange, quora etc. Or you can directly google it of any question.

What i want to tell you that many of your asked question can easily be found in these refereed websites. But if you could not get the logic or your answer correctly then you are free to ask here.

Correct me if you think that i had written something wrong to this post!

Thank you!

1 Like

u r welcome…