Lambda Expressions
Since Java 8 we have Lambda expressions which is a function defined under some interface contract and the main purpose is to implement functional programming in Java. Basically lambda expression is an argument list follow by an arrow token and a body or code expression.
Example 1:
(x, y) -> x + y; Example 2:
() -> "Hello World!"; Example 3:
x -> x.toLowerCase(); Lambdas should be an expression, not a narrative
[Read More]