public class Continue{
public static void main(String[] args){
Thread t = new Thread();
int a = 0;
try{
for (int i=1;i<10;i++)
{
if (i == 5)
{
continue;
//control will never reach here (after the continue statement).
//a = i;
}
t.sleep(1000);
System.out.println("Raja");
System.out.println("Value of a : " + a);
}
}
catch(InterruptedException e){}
}
}In this code, I am going to explain about the continue statement Program in JAVA.
