Is multiple inheritance allowed in java 🙄?

In Java, we know that every class by default extends object class and if we voluntarily extend anyone more class by the class then it means I am extending two classes one is an object that is by default and one is extended by me but in java we say that multiple inheritances are not allowed then how this works because our class is extending two classes?

Quite a good question, Well you see if it has not been cleared yet, that if you are gonna extend some class , then you are just extending to that class, now you java.lang.Object class is kind of , lets say de-linked. So the parent class you extended will in turn extend to the Object class which creates a hierarchical chain rather than a multiple type inheritance.

No. coz it leads to a diamond deadlock problem.