default

The default keyword can only be used within a switch statement block. It can be used only once, and is typically located at the end of the switch statement block. The default keyword is used to label statements that are to be executed by default. That is, the default statement block is only executed when the result value of the switch expression does not match any of the case labels within a switch statement block.

For an example of how the default keyword is used, see the keyword switch.