File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes order of precedence Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "order of precedence" Watch "order of precedence" New topic

order of precedence

Damien Howard
Ranch Hand

Joined: Apr 01, 2003
Posts: 456
Could someone please point me to a place that lists the order of precedence for all operators including bitwise and short circuit operators etc.
Dan Chisholm
Ranch Hand

Joined: Jul 02, 2002
Posts: 1865
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.

Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="" target="_blank" rel="nofollow">Try my mock exam.</a>
chi Lin
Ranch Hand

Joined: Aug 24, 2001
Posts: 348
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
[ May 17, 2003: Message edited by: chi Lin ]

not so smart guy still curious to learn new stuff every now and then
Damien Howard
Ranch Hand

Joined: Apr 01, 2003
Posts: 456
Thanks guys
I agree. Here's the link:
subject: order of precedence
It's not a secret anymore!