| Tutorial ID | 8 |
|---|---|
| Title | Basic Java Syntax-Blocks of Code |
A block of code: * is enclosed in curly braces - start with { and end with } * consists of zero, one, or more statements * behaves like a single statement to the outside world * a complete method is a block * blocks may be nested - containing one or more blocks inside * generally, blocks belong to whatever comes before them (although it is perfectly OK to create a block that does not, this is almost never done) | |
Facebook