- Chapter 2
- Section 2.1 Note: In Java, integers (and other values of
primitive types) are not objects. Therefore, two
occurences of "object" on page 34 should be "value",
namely on line 7 and on line 16. The second yellow margin
note on page 34 is correct.
To be pedantic, note also that some variables do not have
a name. This is not important in chapter 2, but will be
in chapter 8.
- Section 2.2-4
- Section 2.5
- Section 2.6-7
- Section 2.8-9
- Section 2.10Note: There are not differences between the way in
which a variable containing an integer and the way in
which a variable containing an object is assigned the value of
another variable: In both cases, whatever is inside that
other variable (i.e., either an integer or a reference to an
obejct) is copied and stored.
|