Question: how are java enums implemented?
Answer: Enums are statically created when the enum class is first loaded and are immutable. You must have a constructor in the enum class if you want to assign different values to your enum. ... You don't need to use equals() method on enums: the == operator will work just fine.