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)
Misconceptions about Value26 documented Misconceptions
Check YourselfEqualityOperatorComparesObjectsValues
o==p compares the objects referred to by variables o and p
EqualsComparesReferences
o.equals(p) compares the references stored in the variables o and p
ExpressionsDynamicallyTyped
One has to evaluate an expression to determine its type
LocalVariablesAutoInitialized
Local variables are automatically initialized
MultiValueVariable
A variable can contain more than one value
MustInitializeFieldInConstructor
Constructors must assign values to all fields
NoCastIfSameSize
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 variable
NullIsObject
null is an object
PrimitiveIsObject
Primitive values are heap objects
PrimitiveVariablesDynamicallyTyped
The type of a primitive variable depends on its value
UseOfSelfTypeImpliesRecursiveType
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 type
VoidMethodReturnsValue
A method with void return type can return a value