February 2017
Beginner
1056 pages
28h 57m
English
This section introduces lambda expressions. Lambda functions are not limited to graphics and JavaFX, but we present them in the context of creating JavaFX event handlers. Lambda functions are useful in many other contexts, particularly for parallelizing operations to make a program run faster.
Functional programming with lambda expressions was introduced in Java 8. A lambda expression is a nameless function. In functional programming, a function is the same thing as a method. Related concepts include closures, anonymous functions, and function literals. As a nameless function, a lambda expression is essentially a little chunk of code that you can pass around as data but have it treated ...
Read now
Unlock full access