Java Interview Questions

BY Author

The continuestatement

The continue statement forces loop to skip statements written after it & continue next execution of the loop.

Syntax

continue;

Note

If thecontinue statement is encountered in thefor loop, program control jumps directly to the update expression.If thecontinue statement is encountered in thewhile &do-while loops, program control jumps directly to thecondition.