what is the use of break statement in Java with example
Answers
Answered by
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
History,
4 months ago
Social Sciences,
4 months ago
Math,
4 months ago
CBSE BOARD X,
8 months ago
Science,
8 months ago