1.double d = 5,int i = 5,d==i
2.Byte.MAX_VALUE=127,Byte.MIN_VALUE=-128
3.Short.MAX_VALUE=32767,Short.MIN_VALUE=-32768
4.Integer.MAX_VALUE=2147483647,Integer.MIN_VALUE=-2147483648
5.Long.MAX_VALUE=9223372036854775807,Long.MIN_VALUE=-9223372036854775808
6.Float.MAX_VALUE=3.4028235E38,Float.MIN_VALUE=1.4E-45
7.Double.MAX_VALUE=1.7976931348623157E308,Double.MIN_VALUE=4.9E-324
8.
int a=10,b=20;
System.out.println("a+b="+a+b); //ͬa+b=1020
System.out.println("a+b="+(a+b)); //a+b=30
9.
int i = 10, j = 8, m = 11, n = 20, k, g;
System.out.println(i++); //10
System.out.println(++j); //9
System.out.println("i="+i); //i=11
System.out.println("i="+j); //i=9
k = m++;
System.out.println("k="+k); //k=11
System.out.println("m="+m); //m=12
g = 3*(++n);
System.out.println("g="+g); //g=63
System.out.println("n="+n); //n=21
10.
int a=0,b=10,c=3;
System.out.println( a!=0 && b/a-c>0 ); //false
//System.out.println( a!=0 & b/a-c>0 ); //报错
System.out.println( a!=0 ^ b!=0 ); //true