enum

A type that defines a fixed set of named constants.

What is enum in Java?

enum — A type that defines a fixed set of named constants.

enum Status {
    NEW,
    SHIPPED
}

Level: Apprentice · More Java terms at this level

Updated

In other subjects