Java-Enumeration

Enumeration In its simplest form, an enumeration is a list of named constants. An enumeration is created using the enum keyword. For example, here is a simple enumeration that lists various Fruits varieties : The identifiers ‘Apple’, ‘Banana’, and so on, are called enumeration constants. Once you have defined an enumeration, you can create a … Read more…