0 votes
in JAVA by
Why use Lambda Expression?

1 Answer

0 votes
by

Use Lambda Expression :

  • Facilitates functional programming - Lambda Expression facilitates functional programming and simplifies the development a lot.
  • To provide the implementation of the Java 8 Functional Interface.
  • Reduced Lines of Code - One of the clear benefits of using lambda expression is that the amount of code is reduced, we have already seen that how easily we can create instances of a functional interface using lambda expression rather than using an anonymous class.
  • Passing Behaviors into methods - Lambda Expressions enable you to encapsulate a single unit of behavior and pass it to other code. For example, to other methods or constructors.
...