17


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

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

}

}

posted on 2021-01-08 00:06  书费  阅读(28)  评论(0编辑  收藏  举报

导航