Integer源碼淺析IntegerCache

1、引例,看以下代碼  Java代碼   int a = 100, b = 100;   System.out.println(a == b); // true,緩存了   Integer c = 1000, d = 1000;   System.out.println(c == d); // false,沒有緩存,要new   Integer e = -128, f = -128;   Syst
相關文章
相關標籤/搜索