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. In languages with assignable variables, it becomes necessary to distinguish between the r-value (or contents) and the l-value (or location) of a variable.In declarative (high-level) languages, values have to be referentially transparent.
Misconceptions about Value23 documented MisconceptionsCheck Yourself
EqualityOperatorComparesObjectsValueso==p compares the objects referred to by variables o and p
EqualsComparesReferenceso.equals(p) compares the references stored in the variables o and p
ExpressionsDynamicallyTypedOne has to evaluate an expression to determine its type
LocalVariablesAutoInitializedLocal variables are automatically initialized
MultiValueVariableA variable can contain more than one value
MustInitializeFieldInConstructorConstructors must assign values to all fields
NoCastIfSameSizeIf 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
NullIsObjectnull is an object
PrimitiveIsObjectPrimitive values are heap objects
PrimitiveVariablesDynamicallyTypedThe type of a primitive variable depends on its value
UseOfSelfTypeImpliesRecursiveTypeIf 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
VoidMethodReturnsValueA method with void return type can return a value