hi all
this code
public class
test {
private int i = giveMeJ();
private int j = 10;
private int giveMeJ()
{
return j;
}
public static void main(
String args[])
{
System.out.println((new test()).i);
}
}
Result is 0
somebody explain above code because i have doubt this line private int i = giveMeJ(); .
new test()).i after excuting this line.
giveMeJ(); method called or not why i value is 0.
Regards & venkat