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 operator precedence table 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 "operator precedence table " Watch "operator precedence table " New topic

operator precedence table

Raju Champaklal
Ranch Hand

Joined: Dec 10, 2009
Posts: 521
do we have to memorize the table except knowing the (* /% )comes before (+-)

and everything right to = is evaluated first

scjp 1.6 91%, preparing for scmad
"Time to get MAD now.. we will get even later" someone unknown
Ankit Garg

Joined: Aug 03, 2008
Posts: 9453

You don't have to memorize the precedence table. The questions in SCJP don't try to confuse you too much about operator precedence. Just basic understanding of operator precedence is enough (as much as is covered in K&B). SCJP 1.4 used to have confusing questions about operator precedence but Sun changed that after SCJP 5...

SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
wood burning stoves
subject: operator precedence table
It's not a secret anymore!