![]() |
syntactic unit > scoping unit > block |
![]() ![]() | ||||
block | ||||
subject | fact |
block | contains several statements surrounded by braces ![]() | ![]() |
has definition Any code between matching braces | ![]() | |
has definition A syntactic unit that groups statements or makes new declarations | ![]() | |
has example { | ![]() | |
has layout example style preferred by Sun:if(condition) { | ![]() | |
has layout example style preferred by the authors:if(condition) | ![]() | |
has purpose to create a new scope and/or to create a compound statement | ![]() | |
is a subtopic of Statements and Expressions | ![]() | |
is partitioned into body, nested block | ![]() | |
is used as the body of classes, loops, conditional statements and for exception handling ![]() | ![]() | |
is a kind of scoping unit | ![]() | |
syntactic unit | has syntax rule bold = mandatory | ![]() |
Kinds of block :