Computer Science, asked by VermaMadhu, 8 months ago

what is the use of break statement in Java with example ​

Answers

Answered by AaravpandeyAV1306
4

Answer:

if you satisfied with my answer please mark me as a brainlist

Explanation:

Break statement in Java with example. The break statement is usually used in following two scenarios: a) Use break statementto come out of the loop instantly. Whenever a break statement is encountered inside a loop, the control directly comes out of loopand the loop gets terminated for rest of the iterations.

Similar questions