为什么在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
 随时随地看视频慕课网APP
随时随地看视频慕课网APP
相关分类