The Switch Statement:
A switch statement can frequently used in place of a nested if-else or an if statement with numerous else if clauses. The Switch statements are used whenever an expression is tested to see whether it is equal to one of numerous possible values.