为什么在Java中比较IntegerWrappers时128=128为false,而127=127为真?
class D {
    public static void main(String args[]) {
        Integer b2=128;
        Integer b3=128;
        System.out.println(b2==b3);
    }}false
class D {
    public static void main(String args[]) {
        Integer b2=127;
        Integer b3=127;
        System.out.println(b2==b3);
    }}true
慕斯王
30秒到达战场
哈士奇WWW
相关分类