Program of Interface in Java

In java we have using interface because java doesn’t supports multiple inheritance. Interface in java is the concept which is other option to use concept of multiple inheritance by using java interface example. In the case of Interface example in java we have permission to access the other class by using interface in java. This is simple and easy to learn example of inheritance in java. Interface java example contains simple interface n it is access through the class.

Interface in java a reference of interface type can be refer to object of a class that implements the interface. In java interface example class can implements more than one interface. The following program is example of interface in java.

Program for Java Interface Example

 Output of interface example in java

Program of Interface in Java