Abstract
How anonymous classes differ from anonymous functions.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Notes
- 1.
Lambdas are called using the invokedynamic bytecode. It’s more efficient than generating new classes and instantiating them as is the case for anonymous classes.
Author information
Authors and Affiliations
Rights and permissions
Copyright information
© 2018 Toby Weston
About this chapter
Cite this chapter
Weston, T. (2018). Classes and Functions. In: Scala for Java Developers. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3108-1_10
Download citation
DOI: https://doi.org/10.1007/978-1-4842-3108-1_10
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-3107-4
Online ISBN: 978-1-4842-3108-1
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)