Skip to content

Glossary: Java Beyond the Basics

Enum

Also written: enumeration, enum constant, enum constants, enums

A type with a fixed list of values, each an enum constant such as Category.MUG, so a typo like "Cofee" can't slip through.

Where the book teaches it

Related terms

Exhaustivevalues, valueOf, ordinalSwitch expression