switch Multiple-Selection Statement
}switch multiple-selection statement performs different actions based on the possible values of a constant integral expression of type byte, short, int or char.
}switch does not provide a mechanism for testing ranges of values—every value must belisted in a separate case label.
}Note that each casecan have multiple statements.
}switch differs from other control statements in that it does not require braces around multiple statements in a case.
}Without break, the statements for a matching case and subsequent cases execute until a break or the end of the switchis encountered. This is called “falling through.”
}If no match occurs between the controlling expression’s value and a case label, the default case executes.
}If no match occurs and there is no default case, program control simply continues with the first statement after the switch.

