Java View all facts Glossary Help |
syntactic unit > access unit > variable > constant > constant local variable |
constant local variable comparison table |
Subject | declare anywhere in | have | have lifetime | initialize by | is a kind of | is a synonym of | is a subtopic of | have name | reference without | declare you | has definition | allow |
---|---|---|---|---|---|---|---|---|---|---|---|---|
constant | comment if it is non-obvious | longer than the existence of an instance of the class | variable | final variable | Constants | a constant name | the existence of an instance of a class | use the 'final' keyword | A variable with a value that never changes | |||
local variable | a method | a lifetime which is the time of one execution of its block | an assignment statement | variable | Variables and Data Types | A variable that is declared in a method | ||||||
constant local variable | a method | a lifetime which is the time of one execution of its block | longer than the existence of an instance of the class | an assignment statement | local variable | Constants | a constant name | the existence of an instance of a class | use the 'final' keyword | in Java 1.0 |
Next constant: constant that is declared in an interface Up: constant, local variable Previous constant: string constant