~/ learn/ java-from-zero/ cards/ The switch statement
1 of 2

Type a case with its break

Type a case with its break

Answer

case 1: name = "Mon"; break;

Without break, control falls through into the next case — a frequent and subtle bug.

space flip · ← → navigate · esc to exit
NORMAL ~/memra/library/73c99b6d-7e11-4548-89f4-9996c1c2a0d1/flashcard utf-8 LF