This content has been marked as final.
Show 2 replies
-
1. Re: What is main use of Lambda Expressions in Java8?
abhijithtn Feb 25, 2014 1:56 PM (in response to msnaidu)1 of 1 people found this helpfulLambda Expressions for Java is specified by JSR 335, which speaks about below topics.
- Part A: Functional Interfaces: Provides a definition of functional interfaces, which lambda expressions and method references can be used to instantiate.
- Part B: Lambda Expressions: Defines the syntax of lambda expressions, including rules for the new kinds of parameter lists and statement lists.
- Part C: Method and Constructor References: Defines the syntax of method and constructor references.
- Part D: Poly Expressions: Describes poly expressions, which are a category of expressions that can adapt their typing to conform to a particular context.
- Part E: Typing and Evaluation: Specifies the typing rules and evaluation behaviour of lambda expressions, method references, and constructor references.
- Part F: Overload Resolution: Adapts overload resolution to handle lambda expressions and other poly expressions
- Part G: Type Inference: Redefines type inference to support lambda expressions, method references, and constructor references, and to allow context to be pushed down to nested poly expressions.
- Part H: Default Methods: Describes the syntax and inheritance behaviour of default methods, which are members of interfaces.
I feel, the improvement lambda expressions brings by removing the verbose syntax itself is one of the major advantages.
Lambda with Streams makes a stunning combination for Java.
Oracle tutorial on Lambda expressions, though lists everything, but fails to impress the reader due to lack of organization.
Probably, you could start with the below link. The tutorial is basic but makes it easier to understand.
http://www.dreamsyssoft.com/java-8-lambda-tutorial/
Let me know if you need more information.
-
2. Re: What is main use of Lambda Expressions in Java8?
msnaidu Feb 25, 2014 11:42 PM (in response to abhijithtn)Thanks for the info