Computer Applications
Name two jump statements and their use.
Java Conditional Stmts
ICSE 2010
92 Likes
Answer
break statement, it is used to jump out of a switch statement or a loop. continue statement, it is used to skip the current iteration of the loop and start the next iteration.
Answered By
44 Likes
Related Questions
What is a compound statement? Give an example.
Explain with an example the if-else-if construct.
Give two differences between the switch statement and the if-else statement.
Predict the Output of the given snippet, when executed:
int a=1,b=1,m=10,n=5; if((a==1)&&(b==0)) { System.out.println((m+n)); System.out.println((m—n)); } if((a==1)&&(b==1)) { System.out.println((m*n)); System. out.println((m%n)); }