18).What is the work of break keyword?
Answers
Answered by
3
Answer:
The break keyword terminates the smallest enclosing do ,for,switch,or while statement in WHICH it appears.break;The break statement is used to exit an interaction or switch statement .
Answered by
0
Answer:
Break keyword helps to break loop.
Explanation:
It is a one types of loops control structure. It can terminate switch statement in Java. By breck key word we can eliminate loop immediately.And automatically there will arrive next loop of the programme.It has a power of loop control.For example in Python break keyword use as a loop control statement.
Similar questions