奇葩的细节

public class Test {
    
    public static void main(String[] string){
    
        int i = Integer.MAX_VALUE;
        System.out.println(i);
        
        long t = i + 1;
        System.out.println(t);
        System.out.println(i>t);
    }
}

运行结果:

2147483647
-2147483648
true

posted @ 2014-05-14 23:18  mynona  阅读(87)  评论(0编辑  收藏  举报