A class can inherit only one class, but it is possible to implement multiple interfaces.
The methods inside the interface are abstract methods and must be overridden by all methods. The method of the interface abstraction is overridden, and the inherited class does not have to.
Inheritance in general development in comparison with less, the interface should be a little more., interface is mainly to achieve a loose coupling, easy to maintain, upgrade, inheritance is mainly to improve the reusability of code, a lot of things can be done in the parent class. Subclasses can be used directly, with a word now popular words, the benefits of inheritance is the same as the spelling daddy.
different modifier modifiers (interface), (extends)
In object-oriented programming, you can have more than one inheritance! But the multiple inheritance of the interface is supported, and the inheritance is not supported.
Whereas inheritance has a single root in Java, subclasses inherit only one parent class.
Only global constants, and abstract methods, can be defined in an interface
In inheritance, you can define attribute methods, variables, constants, etc...
When an interface is implemented by a class, the abstract method in the interface must be implemented in the Class!
The difference between Java implementation interface and inheriting class