ICSE Class 10 Computer Applications Question 32 of 76

Revising Basic Java Concepts — Question 36

Back to all questions
36
Question

Question 17

What is the significance of a break statement in a switch statement ?

Answer

The break statement when used inside a switch, ends that case and proceeds to the first statement that follows switch statement. In case, the break statement is missing, the control flows to the next case below the matching case and continues to execute all the cases, till the end of switch statement. This is called fall through.