Ming Yang
Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="http://www.danchisholm.net/" target="_blank" rel="nofollow">Try my mock exam.</a>
Originally posted by feng lee:
I don't think so the i will be 2.beacause variable only pass its copy,so the original i is still 0.so i think the output should be:
1,1,1,1,1,2
Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="http://www.danchisholm.net/" target="_blank" rel="nofollow">Try my mock exam.</a>
Ming Yang
Originally posted by Salim Mohamed:
Dan,
I calculated the same way as Peter Wu has done to arrive at the answer , But your way is more accurate.
Thanks !
Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="http://www.danchisholm.net/" target="_blank" rel="nofollow">Try my mock exam.</a>
SCJP2. Please Indent your code using UBB Code
SCJP2. Please Indent your code using UBB Code
Co-Author of Head First Design Patterns
Just a Jini girl living in a J2EE world.
Originally posted by Kathy Sierra:
And as always, I'm compelled to point out to anyone who might be freaking out at that question, that you will not see any questions like this on the exam! The only questions that expect you to understand precedence are with respect to casting, String concatenation, and just knowing how pre/post operators work in general."
Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="http://www.danchisholm.net/" target="_blank" rel="nofollow">Try my mock exam.</a>
Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="http://www.danchisholm.net/" target="_blank" rel="nofollow">Try my mock exam.</a>
I not only use all the brains that I have, but all that I can borrow. [Laurence J. Peter]
Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="http://www.danchisholm.net/" target="_blank" rel="nofollow">Try my mock exam.</a>
Ming Yang
Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="http://www.danchisholm.net/" target="_blank" rel="nofollow">Try my mock exam.</a>
SCJP2. Please Indent your code using UBB Code