Two Laptop Bag
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

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
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: 9466

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
I agree. Here's the link:
subject: operator precedence table
jQuery in Action, 3rd edition