operator Demo02

发布时间 2023-10-14 17:34:12作者: 宁宁宁宁宁宁宁宁

package operator;

public class Demo02 {
public static void main(String[] args) {
long a = 158975155916185L;
int b = 123;
short c = 10;
byte d = 8;

System.out.println(a+b+c+d);//long
System.out.println(b+c+d);//int
System.out.println(c+d);//int

}
}