- attribute of data type:
1 public class Byte
2 {
3 public static void main(String srgs[])
4 {
5 byte byte_max=java.lang.Byte.MAX_VALUE;
6 short short_min=Short.MIN_VALUE;
7 int int_size=Integer.SIZE;
8 System.out.println(byte_max+" "+short_min+" "+int_size);
9 }
10 }
2.date overflow
1 public class overflow
2 {
3 public static void main(String srgs[])
4 {
5 int int_max=Integer.MAX_VALUE;
6 int int_min=Integer.MIN_VALUE;
7 int UP=int_max+1;
8 int DO=int_min-1;
9 System.out.println(int_max+" "+int_min);
10 System.out.println(DO+" "+UP);
11 }
12 }