I am trying to read up on enums to better understand them.
From the javadocs of enums I get the following:
An enum type is a special data type that enables for a variable to be a set of predefined constants.
To me this sounds a lot like a final variable.
- What is the real difference?
- And when would you use one over the other?
- Is enum just a final variable that can be a set of things?