Note that the order of binding
Double A = (Double) 2/3; ... // A = 0.6666
the Data variable data type, LocalDataTime data type is immutable
Variable assignment change point is variable, point to different values.
When the contents of the variable variable, in changing the internal contents of the variable reference.
So has changed variables reference and change of the difference between the value of the variable.
For when String is immutable types, assignment, paid assigned a reference, not value. That is to change the reference value does not change.
For the StringBuilder append () operation to change the variable value.
And, the modified final is immutable reference. For immutable type, it points a reference immutable, then the value of a variable represents not; mutable, immutable, even if a reference point, but does not affect the value of the variable changes.
Meanwhile, final keyword immutable references provides support for static checking
Snapshot Diagram
original data type
objects
for the object type of the variable, with a single frame; for immutable type double frame
for immutable reference bidirectional arrows
such as, in the Person ID Final;
List <>
the Set <>
the Map <>
Special , the iterator snapshot