I found a nice example why it is so.
class Switch {
public static void main(
String args[]) {
for(int month=1;month<=12;month++) {
String season;
switch (month) {
case 12:
case 1:
case 2:
season = "Winter";
break;
case 3:
case 4:
case 5:
season = "Spring";
break;
case 6:
case 7:
case 8:
season = "Summer";
break;
case 9:
case 10:
case 11:
season = "Autum";
break;
default:
season = "Bogus Month";
}
System.out.println("Month " +month+" is in the season + ".");
}
}
}
This make sense:
break statement can be effectively use in switch statment.