KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > test > Initializers


1 package test;
2
3 public class Test {
4
5     public int field = hashCode() / 10;
6     public static int staticField = 10;
7     public Number JavaDoc num = ((Number JavaDoc)hashCode()).intValue();
8     public boolean b = num instanceof Integer JavaDoc;
9     
10     static {
11         int i = field;
12     }
13     
14     {
15         boolean b1 = b;
16     }
17 }
Popular Tags