256 Integer objects are created in the range of -128 to 127 which are all stored in an Integer array. So when creating an object using Integer.valueOf or directly assigning a value to an Integer within the range of -128 to 127 the same object will be returned.
Login in to like
Login in to comment