package LambdaGenericsExample1; @FunctionalInterface public interface FunctionalGenerics { R execute(T t); }
Here, R -> Return type T -> Takes a string as a parameter It's having abstract method execute. It takes a String and returns a string.