Java Static variables
<pre><code>public class Main {

    static int x = Main.y;
//  static int x = y; //Not allowed; y is not defined
    static int y = x;
    public static void main(String[] args) {
        System.out.println(x);//prints 0
    }
}
</code></pre>

<p>How come I am allowed to use y trough the class, but not directly?</p>

<p>When is y defined?</p>
