package operator;
public class Demo02 {
public static void main(String[] args) {
long a=12312322312312123L;
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
}
}
package operator;
public class Demo03 {
public static void main(String[] args) {
//关系运算符返回结果:正确,错误 布尔值
int a=10;
int b=20;
int c=21;
//取余:模运算
System.out.println(c%a);//1
System.out.println(a>b);//false
System.out.println(a<b);//true
System.out.println(a==b);//false
System.out.println(a!=b);//true
}
}