I have a confusion here.
If I cannot declare a class as static, how does enum works?
It looks like a static class, because it gets instantiated itself and can be called anywhere.
Looks like I can use enum almost like other static fields.
Is it safe to use enum?
enumtypes are automatically static. You can’t have a non-staticenum, so thestaticis implied.JLS 8.9: