switch

Switch statement contains a block of code which is executed only when the switch value matches with the case.
A switch statement can contain multiple case labels. Each case label must hold a different value. The case constant has to be a compile-time constant. The case label can contain the break statement that terminates the flow of the execution. 
The default statement doesn't have to come at the end. It may appear anywhere in the body of the switch statement. If all cases are not match, then default is selected.