Java   View all facts   Glossary   Help
syntactic unit > access unit > variable > local variable
Next variablemember variable    Upvariable    Previous variableconstant   

local variable comparison table
Subject refer to declare anywhere in declare by have have lifetime be initialize by have scope is a kind of is a subtopic of have syntax rule have name have purpose destroy in access by have access modifier reference without declare you have access mode has part contain allow
constant local variablea class or an object or a primitive datuma methodgiving the data type followed by the name of the variablea lifetime which is the time of one execution of its blocklonger than the existence of an instance of the classas private as possiblean assignment statement local variableConstants
bold = mandatory
italic = non-terminal
normal font = optional
a constant nameto refer to an object or a class or a primitive datumthe block where it is declaredother variables and methods in any class in the same package by defaultthe existence of an instance of a classuse the 'final' keyword valueonly values that are of the same type as the variable or a subtype of the variable's typein Java 1.0

Next variablemember variable    Upvariable    Previous variableconstant