Enum operations

Java Enums An Enum type field includes the fixed set of constants. The values of enum type fields are in uppercase letters. In java, we are using enum keyword for define an enum type. Eg: – public enum Day { SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY } Enum types can represent affixed set of […]