HOME
Learning Objectives
- Develop code for assignment statements with expressions and determine the value that is stored in the
variable as a result of these statements.
see an example
- Every variable must be assigned a value before it can be used in an expression. That value must be
from a compatible data type. A variable is initialized the first time it is assigned a value.
Reference types can be assigned a new object or null if there is no object. The literal null is a
special value used to indicate that a reference is not associated with any object.
- The assignment operator = allows a program to initialize or change the value stored in a variable.
The value of the expression on the right is stored in the variable on the left.
- During execution, an expression is evaluated to produce a single value. The value of an expression
has a type based on the evaluation of the expression.
- Develop code to read input.
Previous Topic - Expressions and Outputs
Next Topic