Java View all facts Glossary Help |
syntactic unit > scoping unit > block > nested block > initialization block |
initialization block | ||||
subject | fact |
initialization block | has purpose to be executed before any method for a class or instance | |
is a subtopic of Classes | ||
is a kind of nested block | ||
nested block | should be indented carefully | |
block | contains several statements surrounded by braces | |
has example { | ||
has layout example style preferred by Sun:if(condition) { | ||
has layout example style preferred by the authors:if(condition) | ||
is used as the body of classes, loops, conditional statements and for exception handling | ||
syntactic unit | has syntax rule bold = mandatory |
Kinds of initialization block :