Java – Enum – MCQ

Enum is a special data type that defines a set of constants, providing type safety and allowing for more readable code, especially when dealing with fixed sets of related values like days of the week or states of a process.

Loading...