Lambda Expression in java 8.What is Lambda Expression ? How to use Lambda Expression? When to use Lambda Expression?Where to user Lambda Expression?Why to use Lambda Expression
JDK 8 feature :
---------------
18th march 2014
What is it?
When to use it?
How to use it?
Why to use it?
Where to use it?
What is Lambda Expression
========================
It provides a clear and concise way to represent one method interface using an expression.
The Lambda expression is used to provide the implementation of an interface which has functional interface.
Functinal interface is fragile.We can avoid this using @FunctionalInterface annotation
In Java When to use
===================
If in java there is interface with one method.
one method interface in java : Runnable (run()),Callable (call()),
Where
======
Java lambda expression can be used in the collection framework.
It provides efficient and concise way to iterate, filter and fetch data.
Why to use:
===========
u can reduce lines of code and develope can concentrate on business not on how to execute business ...
#TeamLead
#LambdaExpression
#jdk8feature
#Java8LambdaExpression