360面试题(字符+字节+补码)

public class Test1 {

    public static void main(String[] args){
        byte a = 127;
        byte b = 127;
        a+=b;
        System.out.println(a);
        System.out.println(b);
    }
}

结果:

-2
127
发布了16 篇原创文章 · 获赞 1 · 访问量 482

猜你喜欢

转载自blog.csdn.net/qq_32550623/article/details/100421475