Java View all facts Glossary Help |
syntactic unit > declaration > variable declaration > local variable declaration |
local variable declaration (declaration statement, local variable declaration statement) | ||||
subject | fact |
local variable declaration | is a synonym of declaration statement | |
is a subtopic of Variables and Data Types | ||
is a kind of variable declaration of a local variable | ||
is a synonym of local variable declaration statement | ||
variable declaration | can be placed practically anywhere in Java source code although it is good practice to only declare variables at the beginning of blocks | |
has example int anInteger; | ||
has example Rectangle rect = new Rectangle(); | ||
has purpose to declare a variable | ||
has syntax accessLevel static final transient volatile type variableName | ||
must contain the type name and the variable name | ||
declaration | is part of definition | |
syntactic unit | has syntax rule bold = mandatory |