Published On Jun 10, 2021
Enums in Java
An enum type is a special data type that enables for a variable to be a set of predefined constants.
To create an enum, use the enum keyword (instead of class or interface), and separate the constants with a comma. Note that they should be in uppercase letters.
show more