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.
Enum Example. Here is a simple Java enum example: Notice the enum keyword which is used in place of class or interface. The Java enum keyword signals to the Java compiler that this type definition is an enum. You can refer to the constants in the enum above like this: Notice how the level variable is of the type Level which is the Java enum type defined in the example above. The level variable can take one of the Level enum constants as value (HIGH, MEDIUM or LOW). In this case level is set to HIGH.