KnowledgeBoat Logo
LoginJOIN NOW

Computer Applications

Differentiate between Break and continue

Java Nested for Loops

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


Related Questions