xxxxxxxxxx
@FunctionalInterface
public interface MyFuncInterface{
public void firstMethod(); // this is an abstract method
}
xxxxxxxxxx
The @FunctionalInterface annotation is an informative annotation that indicates whether or not an interface type declaration is meant to be a functional interface.
We can create a custom functional interface using the @FunctionalInterface annotation.