Answer:
Interfaces allow you to specify exactly what classes should do, without specifying exactly how they should do it.
The interface in Java is not a class. It is a series of requirements for a class that must meet the interface.
The interface cannot have instance fields or static methods, it can declare constants and describe methods.
Java does not support multiple inheritance. But each class can implement any number of interfaces.
A class implementing an interface must implement all its methods
Comments
Dear Paul, the inheritance of classes is often understand by the multiple inheritance, while implementation of interface is implementation of interface, not pure inheritance.
Java uses Interface to implement multiple inheritance. A Java class can implement multiple Java Interfaces
Leave a comment