difference between enum data type and constants in java

enum java type

Enum is provided as a new data type to provide the predefined values (constants) for a variable. The Enum data type is defined in java using the enum keyword. The enum data type fields are in uppercase letters being constant values. The enum data types can be helpful in supporting the different values for a […]

Scroll to top
Copy Protected by Chetan's WP-Copyprotect.