do java enums are singleton?

This question already has an answer here:

  • Understanding Enums in Java 6 answers
  • Life span of a Java enum instance 2 answers
  • Comparing Java enum members: == or equals()? 15 answers

  • 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.

    链接地址: http://www.djcxy.com/p/91830.html

    上一篇: 如何检查相等的枚举

    下一篇: java枚举是单身?