Friends,
Looks like my java
IDE problem. It is using jdk1.3 too!
I compiled and run it from command prompt with jdk1.4.1. I got all four lines of output.
Sorry for the confusion, thanks for your help.
How do you guys test your code...command prompt? Or do you use java IDEs? (Since many IDE does not let you use the latest jdk...?)
thanks
Unni