1. Explain the following terms with suitable example
a) Compound statement
b) Break Statement
Answers
Answered by
1
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
Answered by
5
Answer:
hey mate
Explanation:
check my last question and join me
Similar questions
Social Sciences,
5 months ago
Computer Science,
5 months ago
Math,
10 months ago
Math,
10 months ago
Chemistry,
1 year ago