There is a code:
class Point { int getX() {return x;} int y=getX(); int x=3; } public static void main (String s[]) { Point p=new Point(); System.out.println(p.x+", "+py); } And the result will be: 3 0
But it is not entirely clear how it turned out that y is now equal to 0, not 3