Function Interface
This lesson explains the Function interface in Java.
We'll cover the following...
Function is a category of functional interfaces that takes an object of type T and returns an object of type R.
Until now, the functional interfaces that we’ve discussed have either not taken any argument(Supplier), not returned any value(Consumer), or returned only a boolean(Predicate).
Function interfaces are very useful as we can specify the type of input and output.
Below are some of the ...
Ask