Abstract
There are very few means by which a new feature in an existing language can have a significant impact on the ecosystem. Lambda expressions for the Java language are one such significant new feature that has had an effect on many facets of the ecosystem. Simply defined, lambda expressions are a convenient way to create anonymous functions. They provide an easy way to create a single method interface using an expression or series of statements. Lambda expressions are built upon functional interfaces, which are interfaces that contain a single abstract method. They can be applied in many different contexts, ranging from simple anonymous functions to sorting and filtering Collections. Moreover, lambda expressions can be assigned to variables and then passed into other objects.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2017 Josh Juneau
About this chapter
Cite this chapter
Juneau, J. (2017). Lambda Expressions. In: Java 9 Recipes. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-1976-8_6
Download citation
DOI: https://doi.org/10.1007/978-1-4842-1976-8_6
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-1975-1
Online ISBN: 978-1-4842-1976-8
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)