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

K&B Operator precedence

 
Vipin Das
Ranch Hand
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is scjp1.4 doesnt check our knowledge on operator precedence? i havent any such qns or topic in k&b? Please clarify my doubt?
 
Adam Villena
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Upon taking the SCJP exam I had around 2-3 questions regarding operator precedence
 
Vipin Das
Ranch Hand
Posts: 47
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok. Then why there is no topic about operator precedence in K&B, or is it there in some chapter?
 
Dan Chisholm
Ranch Hand
Posts: 1865
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There is no need to learn how to evaluate complex expressions that require memorization of the entire operator precedence chart. The exam has been developed under the assumption that programmers typically use parentheses to control the order of evaluation. The exam does emphasize the fact that the cast operator has higher precedence than the additive and multiplicative operators. For that reason, it's a good idea to memorize the top four levels of the precedence chart.



It is also a good idea to memorize the five levels of the bitwise and logical operators and the conditional operators.
 
Satya Lekkala
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
to get a good understanding on operator precedence , use this link .
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic