File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "order of precedence" Watch "order of precedence" New topic
Author

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.
Thanks
Dan Chisholm
Ranch Hand

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


Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="http://www.danchisholm.net/" 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
HTH
[ 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: http://aspose.com/file-tools
 
subject: order of precedence
 
Similar Threads
Plz tell the precedence of operators.....
Operator precedence &&,||,&,|
Operator precedence
operator precedence
short circuit operators