Generic Functional Interfaces

Java-Generic Functional Interfaces

Generic Functional Interfaces It is possible to declare generic functional interfaces. To understand the value of generic functional interfaces, consider the two different functional interfaces, one called StringYear and the other called IntYear : Both interface defined a method called getYear( ) that returned a result. In the first case, the return type was String. In the second case, the return … Read more…