What is the difference between a continue statement and a break statement?

What is the difference between a continue statement and a break statement?

break completely exits the loop. Continue skips the statements after the continue statement and keeps looping.

By:Sumit Tripathi
Date:2026-05-15 00:00:00

break completely exits the loop. Continue skips the statements after the continue statement and keeps looping.

By:Sumit Tripathi
Date:2026-05-15 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related Java Subjective Links

Java Subjective interview questions and answers for experienced and fresher