Abstract
A variable handle is a reference to a variable, or to a family of variables, including static fields, nonstatic fields, array elements, or components of an off-heap data structure. The concept of variable handles is similar to method handles. Variable handles are represented using the class java.lang.invoke.VarHandle. With variable handles, you can perform different operations on variables called access modes. All supported access modes are defined in the enum VarHandle.AccessMode.
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
© 2018 Fu Cheng
About this chapter
Cite this chapter
Cheng, F. (2018). Variable Handles. In: Exploring Java 9. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3330-6_8
Download citation
DOI: https://doi.org/10.1007/978-1-4842-3330-6_8
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-3329-0
Online ISBN: 978-1-4842-3330-6
eBook Packages: Professional and Applied ComputingApress Access BooksProfessional and Applied Computing (R0)