Object Oriented Software Engineering   View all facts   Glossary   Help
subject > programming language construct > data item > variable > Java variable
Next variablereference    Upvariable    Previous variableinstance variable   

Java variable
subjectfact 
Java variablecan be accessed by other variables and methods in any class in the same package by defaultlink: chapter2section2.8.html#1021, 2001-08-30 14:56:22.0
can have an interface as its type which means that, with the variable, you can invoke any operation supported by the interfacelink: chapter2section2.8.html#952, 2001-08-30 14:56:22.0
is a subtopic of The Basics of Java2001-08-30 14:56:22.0
is declared by giving the data type followed by the name of the variablelink: chapter2section2.8.html#563, 2001-08-30 14:56:22.0
is a kind of variable2001-08-30 14:56:22.0
should be as private as possible2001-08-30 14:56:22.0
variablecan contain different classes of objects depending on the type of the variable2001-08-30 14:58:18.0
can refer to a particular object, several different objects during the execution of a program, or no object at all2001-08-30 14:58:18.0
has scope2001-08-30 14:58:18.0
has type2001-08-30 14:58:19.0

Kinds of Java variable :