Switch case This is a control flow statement that lets you match or ‘switch’ a particular value to multiple cases and execute the certain blocks of code. It is similar to a generalized version of the if else statement where one value or variable is compared to multiple literal constants or expressions.