Java Reference
In-Depth Information
Class fortick
{
Public static void main (string args [])
{
Int n;
For (n=11; n>0; n--);
}
}
Jump statements
Java supports three jump statements which are as follows.
1.
Break
2.
Continue
3.
Return
Break
It is used to terminate a statement which is in sequence in a switch statement and it can be
used for exiting a loop. Some time It can be used instead of goto.
Continue
It provides an early iteration for a loop.
For example
Class continue
{
Public static void main (string args [])
{
For (int i=0; i<5; i ++)
{
System.out.print (i + ““ );
If (i%2 ==0) continue;
Search WWH ::




Custom Search