1 public class Ceshi {
2 int a;
3 double b;
4 boolean c;
5 char d;
6 float f;
7 byte e;
8 long h;
9 short j;
10 public static void main(String args[]){
11 Ceshi a=new Ceshi();
12 System.out.println("整型的默认值是:"+a.a);
13 System.out.println("双精度浮点型的默认值是:"+a.b);
14 System.out.println("布尔型的默认值是:"+a.c);
15 System.out.println("字符型的默认值是:"+a.d);
16 System.out.println("byte的默认值是:"+a.e);
17 System.out.println("单精度浮点型的默认值是:"+a.f);
18 System.out.println("短整型的默认值是:"+a.j);
19 System.out.println("长整型的默认值是:"+a.h);
20
21
22
23 }
24
25 }