Answer
Enums are used to represent a fixed set of constants.
Enums in Java define a closed set of values, meaning the possible values are predefined and cannot be changed. This is useful when you have a specific set of constants, such as days of the week or order statuses, allowing clear, type-safe code. For example, an enum for OrderStatus with values like PENDING, SHIPPED, and DELIVERED ensures only these states are valid.