Please correct me if I'm wrong but I'm not sure if this code is giving any error.
Tested with Eclipse 3.4 and JDK 1.6.0_17 - the compiler isn't showing any errors. Also, the output is 3 - as expected.
Hi Trishul, As mentioned there are no errors. It is all about warnings. My question is, Why warning is coming instead of an error. I am expecting error at Line 23 but I am getting only warning.