PPT Slide
A block is used to unify a sequence of statement into a single statement.
Java syntax:
{ sequence of statements }
Example:
Here is a sequence of statements:
a= 10;
if (a < c) then
a= c;
Here is a single statement, which is a block
{a= 10;
if (a < c) then
a= c;
}
Previous slide
Next slide
Back to first slide
View graphic version