Break statement:
The break statements can also be used to jump of a loop.
Syntax:
for(5.1,5.2,5.3)
{
if(condition)
{
break
}
}
Continue statements:
The continue statement break one iteration in the loop and the continue with in the next iteration in the loop.
Syntax:
for(5.1,5.2,5.3)
{
if(condition)
{
continue;
}
}
Return statements:
The return statement is used for returning a value when the execution of the block is completed .The return statement inside a loop will cause the loop to break and further statements will be ignored by the compiler.