Break and continue statement in java

break and continue are java keywords to skip control flow statements depending on certain condition. break and continue have 2 forms, labeled and unlabeled Break An unlabeled break statement terminates the innermost switch, for, while, or do-while statement, but a labeled break terminates an outer statement. Unlabeled break statement usage public class BreakTest { public…