Java Interface with Example.

In Java, an interface is a blueprint or template of a class. It is a collection of abstract methods that is used to group related methods with empty bodies.

Code :