Do you have any idea, why the following code:
public class A
{
public static int i = B.i + 1;
}
public class B
{
public static int i = A.i + 1;
}
Having:
int aa = A.i;
int bb = B.i;
Says that aa = 2 (!!!) and bb = 1.
I have a STACK OVERFLOW in my brain!!! As far as i understand, recursion stops on static methods, but why? If you remake int i to the getters (to debug and understand why on earth it works like that), you get the stack overflow exception.