ニュース

Fortunately, when Java finally got its enum, it was worth the wait. Not only does the Java enum provide a typesafe representation of finite values, but it supports methods on those values.
There are four reasons that I believe using == to compare Java enums is almost always preferable to using the “equals” method: ...
Saiba como serializar e desserializar enums em Java, os prós e contras de diferentes abordagens e as práticas recomendadas para fazer isso corretamente.