Current location - Plastic Surgery and Aesthetics Network - Plastic surgery and beauty - On the occupation of memory space by int and integer numbers
On the occupation of memory space by int and integer numbers
1: Integer is the wrapper class a of int, and b are all reference data types.

2: Point to two different addresses respectively, and the stored values are 1.

3: c is the basic data type, and a= = c is true. B= = c is true. Compare whether the values in A and B are equal to 1, 4: So they are all true, but a = =b is a false comparison memory address, so it is not equal.