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?