Definition and Usage The default keyword the default block of code in a switch statement. The default keyword specifies some code to run if there is no case match in the switch . Note: if the default keyword is used as the last statement in a switch block, it does not need a break .