...
To convince our idea, we can take an insight of the source code of Integer of JDK 1.6.0_10 from java SEJ2SE:
Code Block |
---|
 private static class IntegerCache {  private IntegerCache(){}  static final Integer cache[] = new Integer[-(-128) + 127 + 1];  static {     for(int i = 0; i < cache.length; i++)   cache[i] = new Integer(i - 128);  }    } |
...