Tags

,


What is the o/p of following program ?

public class ForwardRef
{
int j = getI();
int i = 5;

private int getI() { return i; }

public static void main(String[] args)
{
System.out.println(new ForwardRef().j);
}
}

Advertisements