Posts

Showing posts from August, 2016

java Interview Questions

Break And Continue: Break: skips the iteation continue: skips current iteration only program:- System.out.println("Break :");     for(int i=0;i<8;i++){     if(i==5){     break;     }     System.out.println(i);     }     System.out.println("bye bye..");     System.out.println("*****");     System.out.println("Continue :");     for(int i=0;i<8;i++){     if(i==5){     continue;     }     System.out.println(i);     }     System.out.println("bye bye.."); out put: Break: 0 1 2 3 4 bye bye.. ***** continue 0 1 2 3 4 6 7 bye bye..