Assignment
To assign means to store a value in a variable.
Related concepts: ValueVariable
Closest Wikipedia entry: Assignment (computer science) — In computer programming, an assignment statement sets and/or re-sets the value stored in the storage location(s) denoted by a variable name; in other words, it copies a value into the variable. In most imperative programming languages, the assignment statement (or expression) is a fundamental construct. Today, the most commonly used notation for this operation is x = expr (originally Superplan 1949–51, popularized by Fortran 1957 and C).
Misconceptions about Assignment16 documented Misconceptions
Check YourselfAssignCompares
= compares two valuesAssignmentCopiesObject
Assignment copies the objectAssignmentNotExpression
An assignment a=b is not an expressionExpressionAssigns
An expression that reads a variable also updates its value after the evaluationLocalVariablesAutoInitialized
Local variables are automatically initializedMustInitializeFieldInConstructor
Constructors must assign values to all fieldsThisAssignable
One can assign to thisVariablesHoldExpressions
= stores an expression in a variable