大佬能解释下这主要涉及到那个方面的知识吗
public class Test {
public static void main(String[] args) {
byte a = 127;
short b = 32767;
int c = 2147483640;
long d = 2147483650L;
System.out.println(a+b+c+d);
}
}
public static void main(String[] args) {
byte a = 127;
short b = 32767;
int c = 2147483640;
long d = 2147483650L;
System.out.println(a+b+c+d);
}
}
为啥这里出的是32888 ,有大佬能解释下吗
#笔试题目##Java#