CS202 Java-111
l
Variable
=
Expression;
l
l
First, Expression on right is evaluated.
l
l
Then the resulting value is stored in the memory
location of Variable on left.
l
l
NOTE:
The value assigned to Variable must be of
the same type as Variable.
Assignment Statement Syntax