Rajeev Trikha (SCJP 6)
Greg Stevens wrote:I'm still confused. It just makes no sense whatsoever to me to say
post increment operator has highest precedencepost decrement operator has higher precedence than pre increment operator
Greg Stevens wrote:but pre increment is evaluated first. Obviously I am confused about the meaning of precedence. Common usage of precedence refers to one thing happening before another.
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
Greg Stevens wrote:The instructor clearly has operator precedence and order of evaluation confused. I'm glad I came here, because even after reading the JLS, I knew something was wrong, but not exactly what -- the specification is not very easy to decipher for mere mortals like myself. I would still be confused if you guys hadn't told me operator precedence is not the same as order of evaluation.
Today's lesson is that you can't wear a jetpack AND a cape. I should have read this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|