+ 7

what is compound statement? (java)

in java

22nd Jan 2018, 12:43 PM
suman Kayal
suman Kayal - avatar
3 Respuestas
+ 18
compound statement(s) is any kind of statement(s) grouped between the curly brackets //just like in example by D_Stark //just 2 points ☺👍 1)it can be any number 2)grouped between curly brackets //it can be bracket of if statement, while loop etc ...
22nd Jan 2018, 2:07 PM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 6
for(;;){The body of this method is the compound which holds the expression statments};
22nd Jan 2018, 12:54 PM
D_Stark
D_Stark - avatar
+ 2
Compound statement is a statement which contains a number or any other expression within curly braces .
5th Feb 2019, 11:30 AM
Vaibhav Vaish