Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

operator precedence table  RSS feed

 
Raju Champaklal
Ranch Hand
Posts: 521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
do we have to memorize the table except knowing the (* /% )comes before (+-)

and everything right to = is evaluated first
 
Ankit Garg
Sheriff
Posts: 9610
37
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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...
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!