爲什麼1000==1000返回false,100==100返回true?

這可能是個討論得較多的話題,但是我覺得它很有趣:爲什麼1000==1000返回false,100==100返回true? public static void main(String[] args) { Integer a = 1000, b = 1000;    System.out.println(a == b);    Integer c = 100, d = 100;    
相關文章
相關標籤/搜索