Getting Started

There are dozens of features added to Java 8, the most significant ones are mentioned below −

 Lambda expression

 Adds functional processing capability to Java.Lambda expressions are presented in Java 8 and are touted to be the greatest component of Java 8. Lambda expression facilitates functional programming, and simplifies the development a lot.

 





Lambda expressions are presented in Java 8 and are touted to be the greatest component of Java 8. Lambda expression facilitates functional programming, and simplifies the development a lot.

A lambda expression is characterized by the following syntax −

parameter -> expression body

Following are the important characteristics of a lambda expression −

  • Optional type declaration − No need to declare the type of a parameter. The compiler can inference the same from the value of the parameter.

  • Optional parenthesis around parameter − No need to declare a single parameter in parenthesis. For multiple parameters, parentheses are required.

    In next page we are study in deep..

Related Articles

post a comment