Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

order of precedence

 
Damien Howard
Ranch Hand
Posts: 456
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Could someone please point me to a place that lists the order of precedence for all operators including bitwise and short circuit operators etc.
Thanks
 
Dan Chisholm
Ranch Hand
Posts: 1865
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Damien,
For the purposes of the exam, you do not need to memorize the entire precedence chart. I'm sure that's why it is not listed in the exam study guide that you are using.
Please see Expressions, Statements, and Blocks.
 
chi Lin
Ranch Hand
Posts: 348
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look at the Bruce Eckel Thinking in Java. chapter 3, he has a mnemonic
Ulcer Addicts Really Like C A Lot

Ulcer -> Unary
Addicts -> Arithmetic (and shift)
Really -> Relational
Like -> Logical (and bitwise)
C -> Conditional (ternary)
A Lot ->Assignment
HTH
[ May 17, 2003: Message edited by: chi Lin ]
 
Damien Howard
Ranch Hand
Posts: 456
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks guys
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic