A compound statement is any number and kind of statements grouped together within curly braces. You can use a compound statement anywhere a statement is required by Java syntax: for(int i = 0; i < 10; i++) { a[i]++; // Body of this loop is a compound statement.
break Statement
break statement is encountered inside a loop, the loop is immediately terminated and the program control resumes at the next statement following the loop. It can be used to terminate a case in the switch statement
Answers & Comments
Answer:
A compound statement is any number and kind of statements grouped together within curly braces. You can use a compound statement anywhere a statement is required by Java syntax: for(int i = 0; i < 10; i++) { a[i]++; // Body of this loop is a compound statement.
break Statement
break statement is encountered inside a loop, the loop is immediately terminated and the program control resumes at the next statement following the loop. It can be used to terminate a case in the switch statement