Java   View all facts   Glossary   Help
member > class member > class variable
Next class memberclass method    Upclass member, member variable

class variable comparison table
Subject have syntax rule destroy in associate with is a subtopic of take the place of access from declare by overuse access by refer to has part represent contain use by have purpose is a synonym of mark as allocate once for allocate when be part of declared in belong to is a kind of used initialize by define have access modifier refer to by be accessible to declare anywhere in be a member of have has definition be is partitioned into
class member   Members         every method of the class static member      member         A member of a class which is either a field or a method class method, class variable
member variable
bold = mandatory
italic = non-terminal
normal font = optional
the block where it is declared    giving the data type followed by the name of the variable other variables and methods in any class in the same package by defaulta class or an object or a primitive datumvalue only values that are of the same type as the variable or a subtype of the variable's type to refer to an object or a class or a primitive datumfield      variable an assignment statement  the code in its classa class outside of a methoda class or an objectcomment if it is non-obvious as private as possibleclass variable, instance variable
class variable
bold = mandatory
italic = non-terminal
normal font = optional
the block where it is declaredany instance of any classMembersglobal variables used in other languagesgiving the data type followed by the name of the variable other variables and methods in any class in the same package by defaulta class or an object or a primitive datumvaluethe state of a classonly values that are of the same type as the variable or a subtype of the variable's typeevery method of the classto refer to an object or a class or a primitive datumstatic variablestatica classthe class is loadeda classthe body of the class (not inside a method)1 classmember variableto store
  • default or 'constant' values that are widely used by methods in a class
  • lookup tables and similar structures used in algorithms in a particular class
an assignment statementan attribute of an entire classspecifying the name of the class, followed by a dot, followed by the name of the variablethe code in its classa class outside of a methoda class or an objecta nameA data item present in a class that is shared by all instances of that classas private as possible 

Next class memberclass method    Upclass member, member variable