This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

operator precedence and exam:

 
Barkat Mardhani
Ranch Hand
Posts: 787
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Do we have to memorize the precedence table?
 
Jim Bedenbaugh
Ranch Hand
Posts: 171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Barkat Mardhani:
Do we have to memorize the precedence table?

Well, you don't have to, but I sure did. Expect to see some questions on the exam that might test this knowledge.
 
Barkat Mardhani
Ranch Hand
Posts: 787
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Jim.
I see that you have all the certifications I am aiming for.

Sun Certified Programmer for the Java 2 Platform
Sun Certified Developer for the Java 2 Platform
Sun Certified Web Component Developer for the J2EE Platform
Sun Certified Enterprise Architect - Part I
--------------------------------------------------------------------------------

Any single quick tip to advise how to get there? Mind you I do not have any programing experience in Java yet. I am hoping to get some after SCPJ certification.

Thanks
Barkat
 
Dan Chisholm
Ranch Hand
Posts: 1865
  • 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.
  • Postfix: expr++,expr--
  • Unary, Prefix, Cast: +expr,-expr,~expr,!expr,++expr,--expr,(type)expr
  • Multiplicative: *,/,%
  • Additive +,-

  • It is also a good idea to memorize the five levels of the bitwise and logical operators and the conditional operators.
     
    Barkat Mardhani
    Ranch Hand
    Posts: 787
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Thanks Dan
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic