probably a dumb question but I didn’t find an answer, so as far as I learned java does not support inheritance from multiple classes, but every class already inherits from the class Object so how can it inherit from another class?.
>Solution :
A class only directly inherits from Object if it does not inherit from another class (that is not Object).
See the Oracle Java Tutorial:
Excepting Object, which has no superclass, every class has one and only one direct superclass (single inheritance). In the absence of any other explicit superclass, every class is implicitly a subclass of Object.