Java Enums Tutorial with Examples
Java enums (declared using the enum keyword) are shorthand syntax for sizable quantities of constants of a single class. Declaring and using a basic enums Enum can be considered to be syntax sugar for a sealed class that is instantiated only a number of times known at compile-time to define a set of constants. A … Read more