Skip to content

Glossary: Java Beyond the Basics

Exhaustive

Also written: exhaustive switch

A switch that covers every possible case (every enum constant or every permitted sealed type), so it needs no default and stops compiling if a case is added.

Where the book teaches it

Related terms

SealedEnumSwitch expression