File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes operator precedence and exam: 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 and exam:" Watch "operator precedence and exam:" New topic
Author

operator precedence and exam:

Barkat Mardhani
Ranch Hand

Joined: Aug 05, 2002
Posts: 787
Do we have to memorize the precedence table?
Jim Bedenbaugh
Ranch Hand

Joined: Nov 09, 2001
Posts: 171
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.


Regards,
Jim
SCJP, SCJD, SCWCD, SCEA Part I
Barkat Mardhani
Ranch Hand

Joined: Aug 05, 2002
Posts: 787
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

Joined: Jul 02, 2002
Posts: 1865
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.


    Dan Chisholm<br />SCJP 1.4<br /> <br /><a href="http://www.danchisholm.net/" target="_blank" rel="nofollow">Try my mock exam.</a>
    Barkat Mardhani
    Ranch Hand

    Joined: Aug 05, 2002
    Posts: 787
    Thanks Dan
     
    I agree. Here's the link: http://aspose.com/file-tools
     
    subject: operator precedence and exam: