what is interface in java
An interface is a reference type that contains only methods or constants. It cannot contain instance variables or constructors. An interface is similar to a class, but with some restrictions on its usage. An interface can only be implemented by clas ...