Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Question for those who have given OCAJP7

 
Rohan Deshmkh
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am thinking to give this exam in 2 weeks but i am really worried about the syntax of the questions that would be present on the exam.
For eg. in the sample questions issued by oracle : http://education.oracle.com/pls/web_prod-plq-dad/db_pages.getpage?page_id=303&p_certName=SQ1Z0_803
i find it difficult to read the questions as they are not properly indented.
Is the indentation of code same as that of the sample questions given by oracle?If yes, what was your approach to solve those questions?
Thanks
 
Mala Gupta
Author
Ranch Hand
Posts: 363
11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rohan,

Most of the questions on the exam are indented correctly. I wonder whether all the code with improper indentation is on purpose in the sample questions by Oracle or due to a web page markup glitch!

If you see code with improper indentation, look for:

1) Matching opening and closing curly braces for code blocks, methods and classes. A mismatch here will result in compilation error (look out for presence of this option with the question)

2) Conditional statements (if, switch) and looping constructs (do-while, while, for, enchanced-for), without curly braces.

3) Declaration of variables, which seem to be defined within a class, but are actually defined within methods or other code blocks.

4) If time permits, you can also copy a few lines of code on the erasable board that you get - to find matching if-else-if-else constructs/ loops.

You need to be very careful with reading code with improper indentation.

With respect,
Mala
 
Rohan Deshmkh
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok thanks for replying..
I will try to implement all the above said things.
 
Jacek Laskowski
Ranch Hand
Posts: 42
IntelliJ IDE Mac OS X Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

In some sense you should train your brain and eyes to eventually become a Java compiler! Have a look at http://knowledgeblackbelt.com for some certification tests to let you achieve it. It's free and community-driven so people like us develop questions so others won't easily be able to answer. A great way to think like a compiler.

Jacek
http://japila.pl
 
Edward Finegan
Author
Greenhorn
Posts: 15
Java Linux Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As others have stated don't be concerned with the formatting of the code on the exam. What you see is likely a HTML/CSS issue. On the exam they will not try to throw you off with incorrect formatting. When looking at a question containing a code segment first try to determine if the code is valid and does not contain compiler or runtime errors. Once you are confidant that it valid focus on the question.
 
Rohan Deshmkh
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok thanks for reply guys
 
Mala Gupta
Author
Ranch Hand
Posts: 363
11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rohan,

You will be pleased to learn that the code formatting issues with the sample exam questions on Oracle's website are due to a web page markup issue. Oracle has confirmed that its developers are working on it as answered on https://blogs.oracle.com/certification/entry/0768.

Good Luck for your exam.

With respect,
Mala
 
Rohan Deshmkh
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for looking into this matter.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic