• Tutorials
  • DSA
  • Data Science
  • Web Tech
  • Courses
June 08, 2022 |570 Views

Break Continue Java Programming

  Share   Like
Description
Discussion

The break and continue statements are the jump statements that are used to skip some statements inside the loop or terminate the loop immediately without checking the test expression. These statements can be used inside any loops such as for, while, do-while loop.

Break: The break statement in java is used to terminate from the loop immediately. When a break statement is encountered inside a loop, the loop iteration stops there, and control returns from the loop immediately to the first statement after the loop. Basically, break statements are used in situations when we are not sure about the actual number of iteration for the loop, or we want to terminate the loop based on some condition.

Break Continue _ Java Programming: https://www.geeksforgeeks.org/break-and-continue-statement-in-java/