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..
1. How to do debug if we won’t recive message from queue?
ReplyDelete2.how serialisation process will be work in MVC and Restful web service?