Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

What is Lambda Expressions and Functional Interfaces in Java 8 ?

user-image
Question added by Mohd shahnawaz khan , Associate Project , Cognizant Technology Solution
Date Posted: 2014/09/22
Deleted user
by Deleted user

Lambda Expressions are a simple way to express instances of single-method anonymous classes more compactly.

 

Take a look on these examples

 

What about Functional Interfaces

If you have used Runnable, Callable and other such Single Abstract Method interfaces, Java8 gives you ability to create such interfaces using @FunctionalInterface annotation and you can use Lambda Expressions to instantiate them.

 

You can read more on Functional Interfaces here

More Questions Like This