This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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.