What's difference between enums and final variables?

Viewed 13474

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.

  1. What is the real difference?
  2. And when would you use one over the other?
  3. Is enum just a final variable that can be a set of things?
6 Answers
Related