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 will have 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.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsAuthor information
Authors and Affiliations
Rights and permissions
Copyright information
© 2014 Josh Juneau
About this chapter
Cite this chapter
Juneau, J. (2014). Lambda Expressions. In: Java 8 Recipes. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4302-6826-0_6
Download citation
DOI: https://doi.org/10.1007/978-1-4302-6826-0_6
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4302-6827-7
Online ISBN: 978-1-4302-6826-0
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)