|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
scjp 1.6 91%, preparing for scmad
"Time to get MAD now.. we will get even later"....by someone unknown
.the rule for this is that all the operands are calculated before any arithmetic operatio
|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
scjp 1.6 91%, preparing for scmad
"Time to get MAD now.. we will get even later"....by someone unknown
scjp 1.6 91%, preparing for scmad
"Time to get MAD now.. we will get even later"....by someone unknown
|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
scjp 1.6 91%, preparing for scmad
"Time to get MAD now.. we will get even later"....by someone unknown
SCJP 1.6 96%
|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
Abimaran Kugathasan wrote:Raju Said......
.the rule for this is that all the operands are calculated before any arithmetic operatio
But, this is done in a same line!
"A problem well stated is a problem half solved.” - Charles F. Kettering
SCJP 6, OCPJWCD
|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
Abimaran Kugathasan wrote:
|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Bert Bates wrote:interesting discussion, but this sort of thing isn't on the exam.
Henry Wong wrote:For the most part, Evaluation Order goes left to right, with side effects being applied as the expression is evaluated.
"A problem well stated is a problem half solved.” - Charles F. Kettering
SCJP 6, OCPJWCD
scjp 1.6 91%, preparing for scmad
"Time to get MAD now.. we will get even later"....by someone unknown
|BSc in Electronic Eng| |SCJP 6.0 91%| |SCWCD 5 92%|
Raju Champaklal wrote:what Henry meant is that in some cases the order is from right to left like the one you gave above Nidhi
Nidhi Sar wrote:
I know the evaluation order is normally left-to-right, but when it comes to assignment operator isn't the evaluation order right-to-left?
Please consider the following code:
If line 1 were being evluated left-to-right (first set a to b, then b to c, then c to 99) wouldn't the result be different?
"A problem well stated is a problem half solved.” - Charles F. Kettering
SCJP 6, OCPJWCD
He's dead Jim. Grab his tricorder. I'll get his wallet and this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
|