KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > StaticFieldInits2


1 public class StaticFieldInits2 {
2
3     static int x = 9;
4     static int y = 10;
5     
6     static boolean b1 = x > y;
7
8     public static void main(String JavaDoc [] args){
9         System.out.println(x);
10         System.out.println(y);
11         System.out.println(b1);
12     }
13 }
14
Popular Tags