1/4
Looks like no tags are added yet.
Java Interface
It is a reference type that can contain only constants, method signatures, default methods, static methods, and nested types.
Java Interface
It is used to achieve abstraction and multiple inheritance in Java, defining a contract that implementing classes must fulfill.
Interface
This keyword is used to declare an interface in java.
Syntax test
public interface Expandable{ // use keyword interface instead of class
int EXPANSION_COST = 300; // public final static attribute
boolean expand(); // public abstract method/s
}