|HOME | COURSES | TALKS | ARTICLES | GENERICS | LAMBDAS | IOSTREAMS | ABOUT | NEWSLETTER | CONTACT | | ||
This is a webpage devoted to lambda expressions in Java (a new language
feature) and streams (new abstractions in the JDK's collection framework) - both were added to Java on March 18, 2014 with release 8.
If you want to provide feedback or have any questions regarding lambda expressions in Java feel free to send me
or use the
The Lambda Tutorial is available in PDF format (330KB) and in EPUB format (410KB) .
The Lambda Reference (note: it is an incomplete draft version) is available in PDF format (1200KB) .
 See Wikipedia for examples of the syntax in which these languages express lambdas: .
 See the " Closure Debate" at .
 See Mark Reinhold's blog at .
 More precisely, object creation is no longer explicit. Under the hood, a lambda expression is eventually translated into a synthetic class type and an instance thereof. The key difference is that the class definition and instance creation is explicitly done by the programmer, when anonymous inner classes are used, whereas the class definition and instance creation is implicitly done by the runtime system. Details regarding the translation process can be found in the section on "Lambda Translation" in the Lambda Reference document.
 See the section on "Method References" in the Lambda Reference document.
 If you are interested in the details of the creation of the lambda object please read the section on "Lambda Translation" in the Lambda Reference document or take a look at .
 Details regarding functional interfaces can be found in the section on "Functional Interfaces" in the Lambda Reference document. These details include, for instance, that functional interfaces can under certain circumstances have more than one method. Also, there is a @FunctionalInterface annotation that enables compiler checks for interfaces that are supposed to be used as functional interfaces.
 Expressions that have different type depending on the context in which they appear are called poly expression . The actual type of a poly expression is always inferred by the compiler. Lambda expressions and method references are examples of poly expression. Poly expressions also occur in conjunction with generic; for example instance creation expressions that use a diamond <> like new ArrayList<>() are poly expressions.
 Details regarding functional interface conversion can be found in the sections on "Target Typing " and "Type Inference " in the Lambda Reference document. There you find details regarding which context is suitable for functional interface conversion and how conversion to generic functional interfaces works.
 Details regarding the translation of lambda expressions can be found in the sections on "Translation of Lambda Expressions" in the Lambda Reference document.
 See Mark Reinhold's blog at .
iterator pattern is one of the so-called Gang of Four design patterns
The specification request JSR 335 can be found at
CONTENT NEXT INDEX
|© Copyright 1995-2013 by Angelika Langer. All Rights Reserved. URL: < http://www.AngelikaLanger.com/Lambdas/LambdaTutorial/lambdatutorial_8.html> last update: 8 May 2013|