An interface containing exactly one abstract method. It can have default and static methods.
@FunctionalInterface
interface MyInterface {
void display();
}An interface containing exactly one abstract method. It can have default and static methods.
@FunctionalInterface
interface MyInterface {
void display();
}