do java enums are singleton?
This question already has an answer here:
Enums in java are classes with several constant instances of themselves. These are created like static final
variables. Accessing an enum constant returns a reference to the enum constant. It does not create a new instance of the enum constant.
上一篇: 如何检查相等的枚举
下一篇: java枚举是单身?