Can anybody tell me why this program is not giving values 10? It gives 0 actually.
public class
Test {
private int i = giveMeJ();
private int j = 10;
int giveMeJ() { return j; }
public static void main (
String args[] )
{
System.out.println((new Test()).i );
}
}
Regards,
Veer