posted 18 years ago
Hemanth,
When u call z().i, the statement j=1 is not executed by that time. so, i=peek() returns default value of j.
But in case of z().peek(), before calling any method of a class, all the fields(variables) are assinged to thier values. So j which is assinged to 1 is returned.
Hope this helps,
Please correct me if i am wrong.
Amrutha