what is the significance of break statement in a switch statement in java?
Answers
Answered by
13
Explanation:
When the break statement is encountered inside a loop, the loop is immediately terminated and the program control resumes at the next statement following the loop. It can be used to terminate a case in the switch statement (covered in the next chapter).
Similar questions