|
The Assignment Operator
An Introduction with Examples in Java |
|
Prof. David Bernstein
|
| Computer Science Department |
| bernstdh@jmu.edu |
=
age = 21
initial = 'H'
ok = false
age = 21;
initial = 'H';
ok = false;
21 = age
(which has an inappropriate left-side operand)
i = j = 5 is equivalent to
i = (j = 5)
final Modifier in Java (cont.)
final is the left-side
operand of more than one assignment operator