Communiquez avec les autres et partagez vos connaissances professionnelles

Inscrivez-vous ou connectez-vous pour rejoindre votre communauté professionnelle.

Suivre

What is Lambda Expressions and Functional Interfaces in Java 8 ?

user-image
Question ajoutée par Mohd shahnawaz khan , Associate Project , Cognizant Technology Solution
Date de publication: 2014/09/22

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

Avez-vous besoin d'aide pour créer un CV ayant les mots-clés recherchés par les employeurs?