Java View all facts Glossary Help |
syntactic unit > declaration > variable declaration |
variable declaration comparison table |
Subject | have example | have syntax | place | be part of | have purpose | have syntax rule | contain | is a subtopic of | is a synonym of | is a kind of |
---|---|---|---|---|---|---|---|---|---|---|
local variable declaration | Rectangle rect = new Rectangle(); | accessLevel static final transient volatile type variableName | practically anywhere in Java source code although it is good practice to only declare variables at the beginning of blocks | definition | to declare a variable | bold = mandatory | the type name and the variable name | Variables and Data Types | local variable declaration statement | variable declaration of a local variable |
Next declaration: array declaration Up: declaration Previous declaration: parameter declaration