Java Legal Forward Referencing
Handelt es sich bei dem folgenden Code um eine legale Vorwärtsreferenzierung? wenn ja warum
<code>public class MyClass { private static int x = getValue(); private static int y = 5; private static int getValue() { return y; } public static void main(String[] args) { System.out.println(x); } } </code>