Example & Tutorial understanding programming in easy ways.

Where we use the continue statement? What if we placed continue statement in if condition body?

We use continue statement in loops:

for loop

while loop

do while


Example:

while(i<10){

if i==2

continue;

i++;

}


Continue in if condition:

Example:

if(condition)

{

continue;
}


-It give error.




Read More →
Search
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!