JMU
The Assignment Operator
An Introduction with Examples in Java


Prof. David Bernstein
James Madison University

Computer Science Department
bernstdh@jmu.edu


Review
Review (cont.)
Java vs. Python - Important Differences
Assignment
Assignment of Primitive and Reference Types
Assignment in Java
Assignment in Java (cont.)
Assignment in Java (cont.)
A Practice to Avoid
An Interesting Issue
Type Checking During Assignment
Type Checking During Assignment (cont.)
The final Modifier in Java
The final Modifier in Java (cont.)