Java

Java Enum example with advantages and disadvantages


Enum feature is originally inherent from C and C++ language. It is also known as enumeration. What is Enum? An enum type is a special data type that enables for a variable to be a set of predefined values. The variable must be...