Explain the term in relation to SWITCH: Break
Advertisements
Question
Explain the term in relation to SWITCH:
Break
Explain
Advertisements
Solution
In Java, the break statement is used to terminate the execution of a switch statement immediately after a matching case has been executed. It prevents the execution of subsequent cases and transfers program control to the next statement following the switch block.
shaalaa.com
Is there an error in this question or solution?
