Java   View all facts   Glossary   Help
syntactic unit > access unit > variable > constant > constant local variable
Next constantconstant that is declared in an interface    Upconstant, local variable    Previous constantstring constant   

constant local variable
subjectfact 
constant local variableis a subtopic of Constants2001-10-19 11:36:31.0
is allowed in Java 1.1 and lateradded by: JK, source: Teach Yourself Java 2 in 21 Days, 2001-10-19 11:36:31.0
is not allowed in Java 1.0added by: JK, source: Teach Yourself Java 2 in 21 Days, 2001-10-19 11:36:31.0
is a kind of constant2001-10-19 11:36:31.0
is a kind of local variable2001-10-19 11:36:31.0
constantcan be referenced without the existence of an instance of a class2001-10-19 11:36:31.0
has lifetime longer than the existence of an instance of the class2001-10-19 11:36:31.0
has name a constant name2001-10-19 11:36:31.0
to declare you use the 'final' keyword2001-10-19 11:36:31.0
local variablecan be declared anywhere in a method2001-10-19 11:37:17.0
can be initialized by an assignment statement2001-10-19 11:37:17.0
has a lifetime which is the time of one execution of its block    2001-10-19 11:37:17.0
variablecan be accessed by other variables and methods in any class in the same package by default    2001-10-19 11:38:12.0
can contain different classes of objects depending on the type of the variable2001-10-19 11:38:12.0
can contain only values that are of the same type as the variable or a subtype of the variable's type2001-10-19 11:38:12.0
can refer to a particular object, several different objects during the execution of a program, or no object at all    2001-10-19 11:38:13.0
has purpose to refer to an object or a class or a primitive datum2001-10-19 11:38:13.0
has scope2001-10-19 11:38:13.0
has part value2001-10-19 11:38:13.0
is declared by giving the data type followed by the name of the variable    2001-10-19 11:38:13.0
is destroyed in the block where it is declared2001-10-19 11:38:13.0
may have access modifier 2001-10-19 11:38:13.0
refers to a class or an object or a primitive datum2001-10-19 11:38:13.0
should be as private as possible2001-10-19 11:38:13.0
access unithas access mode2001-10-19 11:35:59.0
syntactic unithas syntax rule
bold = mandatory
italic = non-terminal
normal font = optional
2001-10-19 11:38:04.0

Next constantconstant that is declared in an interface    Upconstant, local variable    Previous constantstring constant