Calls two System.out.println statements: one inside the no-argument constructor and one inside the constructor with three arguments. That's why you get 10, 20, 0 output twice.
SCJP 1.4, SCWCD 1.4
Joined: Sep 15, 2006
Thank you so much Berry and Leandro. Please pardon for the way of expressing the problem or any syntax confusion. I just want to add that,Once the No-arg constructor is done with it's values why does it print the other statement of the ARG constructor. Isn't it just completed. may be it's again a dumb question, but can you please explain if you can.