Java is an Object Oriented Programming language. In Java, an enumeration is a particular class that represents a group of constants. All possible values in the Enums are used at Compile time. In Java, we represent the Enum class with the help of enum data type. Enum in Java more powerful than enum in C/C++. We can add methods, variables, and constructor to it.
#java #java enum #c/c++ #programming