Betaabi Details. Full Cast and Crew; Release Dates; Official Sites; Company Credits; Filming & Production; Technical Specs
Java Enums. A Java Enum is a special Java type used to define collections of constants. More precisely, a Java enum type is a special kind of Java class. An enum can contain constants, methods etc.Java enums were added in Java 5. Java Enum is a special Java type used to define collections of constants. More precisely, a Java enum type is a special kind of Java class. An enum can contain constants, methods etc. Java enums were added in Java 5.
Listing 17-1 contains a definition for an enum. Notice that it is declared with the enum keyword, has a type identifier (Volume), and contains a comma separated list of values enclosed within curly braces. This enum is of type Volume and we use it to declare the myVolume variable in the Main method.