Value
A value is data and may be the result of evaluating an expression or the contents of a variable.
Related concepts: ValueEvaluationVariable
Closest Wikipedia entry: Value (computer science) — In computer science and software programming, a value is the representation of some entity that can be manipulated by a program. The members of a type are the values of that type. The "value of a variable" is given by the corresponding mapping in the environment.
Misconceptions about Value26 documented Misconceptions
Check YourselfEqualityOperatorComparesObjectsValues
o==p compares the objects referred to by variables o and pEqualsComparesReferences
o.equals(p) compares the references stored in the variables o and pExpressionsDynamicallyTyped
One has to evaluate an expression to determine its typeLocalVariablesAutoInitialized
Local variables are automatically initializedMultiValueVariable
A variable can contain more than one valueMustInitializeFieldInConstructor
Constructors must assign values to all fieldsNoCastIfSameSize
If a variable is at least as big (bit-width) as a value, then no cast is needed to a assign the value to the variableNullIsObject
null is an objectPrimitiveIsObject
Primitive values are heap objectsPrimitiveVariablesDynamicallyTyped
The type of a primitive variable depends on its valueUseOfSelfTypeImpliesRecursiveType
If a class has a method that has a local variable, parameter, or return value with the class as its type, the class is a recursive typeVoidMethodReturnsValue
A method with void return type can return a value