Top Categories
In this video we will see : - Basics of enum - Life before enum - How to create enum - Difference between enum of Java and enum in other language An enum type is a special data type that enables for a variable to be a set of predefined constants. The variable must be equal to one of the values th
In this video we will see : - Basics of enum - Life before enum - How to create enum - Difference between enum of Java and enum in other language An enum type is a special data type that enables for a variable to be a set of predefined constants. The variable must be equal to one of the values that have been predefined for it. Common examples include compass directions (values of NORTH, SOUTH, EAST, and WEST) and the days of the week. Because they are constants, the names of an enum type's fields are in uppercase letters. In the Java programming language, you define an enum type by using the enum keyword