[HD Pg 87, Sec. 3.6.2 - creating-wrapper-objects]
Posted: Tue Jan 08, 2019 8:27 pm
Page 89 - "The valueOf methods of Byte, Short, Char, Integer, and Boolean guarantee that they will return cached objects for the same ranges given above"
Page 90 - "Integer i1 = Integer.valueOf(128);
Integer i2 = Integer.valueOf(128); //i1 and i2 may or may not refer to the same Integer instance"
Just to double check, the word guarantee does not apply here, because the value is higher than 127?
Page 90 - "Integer i1 = Integer.valueOf(128);
Integer i2 = Integer.valueOf(128); //i1 and i2 may or may not refer to the same Integer instance"
Just to double check, the word guarantee does not apply here, because the value is higher than 127?