Differentiate between block and compound statement in java..
Answers
Answered by
5
Answer:
A block is a type of statement that contains declarations and other statements surrounded by braces { int i = 1; System.out.println(i); } . Some statements are built using other statements. Their definition does not include a semicolon. If the sub-statement ends in a semicolon, then those statements end in a semicolon.
Similar questions