Enums are a powerful datatype in Java. There are many instances where you want to compare two enums. Given that a enum class supports equals() method, we end up using equals() method as it's frequently used for other object comparisons.
In case of enums, using == (equality) operator is