// ClassInitializer2.java
class ClassInitializer2 {
static boolean bool = true;
static byte by = 20;
static char ch = 'X';
static double d = 8.95;
static float f = 2.1f;
static int i = 63;
static long l = 2L;
static short sh = 200;
static String str = "test";
public static void main(String[] args) {
System.out.println("bool = " + bool);
System.out.println("by = " + by);
System.out.println("ch = " + ch);
System.out.println("d = " + d);
System.out.println("f = " + f);
System.out.println("i = " + i);
System.out.println("l = " + l);
System.out.println("sh = " + sh);
System.out.println("str = " + str);
}
}
|