KnowledgeBoat Logo

Computer Applications

Differentiate between Break and continue

Java Nested for Loops

64 Likes

Answer

  1. break statement is used to unconditionally jump out of the loop whereas continue statement is used to unconditionally jump to the next iteration of the loop, skipping the remaining statements of the current iteration.
  2. break statement is used in switch-case and loops whereas continue statement is only used in loops.

Answered By

44 Likes


Related Questions