KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > T1242r3b


1 class T1242r3a {
2     static {
3         T1242r3b.i = 1;
4         T1242r3b.s = "oops";
5     }
6 }
7 class T1242r3b extends T1242r3a {
8     static int i = 0;
9     static String JavaDoc s = null;
10     public static void main(String JavaDoc[] args) {
11         System.out.print(i + " " + s);
12     }
13 }
14
Popular Tags