Java-Enumeration Super Class

Enumeration Super Class All enumerations automatically inherit java.lang.Enum. The Enum class defines several methods such as ordinal( ), compareTo( ), equals( ) and so on, that are available for use by all enumerations. You can obtain a value that indicates an enumeration constant’s position in the list of constants. This is called its ‘ordinal value’ and … Read more…