What is interface in java?
1) An interface in the Java programming language is an abstract type that is used to specify a behaviour that classes must implement.
2) They are similar to protocols. Interfaces are declared using the interface keyword, and may only contain method signature and constant declarations.