Abstract
An enum (also known as enumeration and enumerated data type) lets you create an ordered list of constants as a type. Before we discuss what an enum is and why we need it, let’s consider a problem and solve it using Java features that were available before enum, which was introduced in Java 5.
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 Kishori Sharan
About this chapter
Cite this chapter
Sharan, K. (2017). Enum Types. In: Beginning Java 9 Fundamentals. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-2902-6_22
Download citation
DOI: https://doi.org/10.1007/978-1-4842-2902-6_22
Published:
Publisher Name: Apress, Berkeley, CA
Print ISBN: 978-1-4842-2843-2
Online ISBN: 978-1-4842-2902-6
eBook Packages: Professional and Applied ComputingProfessional and Applied Computing (R0)Apress Access Books