Should we expect any of the OCA exam tricks inside the OCP Java 8 exam, in other words could we encounter a question in the OCP exam for example about the "Generics and Collections" or "Java Concurrency" and while we've focused completely on these objectives, the actual trick is about Using "Loop Constructs" or "the operators" inside the code snippet of the question ?
Hopefully Bert will chime in on this one as he has more experience than I do with the "tricks" on the exam.
Certainly there is a bit of overlap in the objectives -- it's worth a few minutes to look at the OCA 8 and OCP 8 objectives to see what those are -- and of course you'll be expected to know loop constructs and operators and other material covered in OCA 8 on the OCP exam to some extent. I would like to hope there's no tricks (in that the question looks like an OCP question but turns out to rely on something from OCA) but I certainly wouldn't guarantee that.
Most of the overlaps in objectives we found in sections 1 and 2 of the OCP objectives.
Hope that helps!
Elisabeth Robson wrote:and of course you'll be expected to know loop constructs and operators and other material covered in OCA 8 on the OCP exam to some extent.
Of course anyone in the OCP exam is supposed to know well the OCA objectives such as loop constructs, operators and so on, as most people take first the OCA exam before taking the OCP one.
but my question is when we are in the OCP Java 8 exam could we encounter a question for example about "Generics and Collections" and the code snippet contains nested loop, so while we've got distracted by focusing completely on the objective "Generics and Collections", could we find that the actual trick is about Using "Loop Constructs" or "the operators" inside the code snippet of the question ?
I thought the questions didn't have topics attached to them. You might get a question about Java® coding like this:-
Ahmed Ibrahim wrote:. . . could we encounter a question for example about "Generics and Collections" and the code snippet contains nested loop . . .
That question isn't about generics, lists or nested loops; it contains all three and is about Java®.
Given the following code, what is its output?
0 0 0 0 0 0 0 7 9 13 17 23 25 29 1 1 1 1 1 1 1 Compiler error line 6 Compiler error line 8 7 2 4 4 6 2 4 Compiler error line 3
Campbell Ritchie wrote:I thought the questions didn't have topics attached to them.
Yes right, but i think every question in the OCP exam has aim to test the knowledge of a particular topic so while we've got distracted by fully focused on the Collections or Java Concurrency for example, should we expect that the actual trick maybe is about "scope of a variable" or "operator precedence" or statement doesn't end with semicolon for example ??? this is my inquiry.
I can't remember whether the book or Oracle's website shows counts for categories.
Ahmed Ibrahim wrote:
Campbell Ritchie wrote:In which case that will test your knowledge of loops and scope of variables
test my knowledge of loops and scope of variables in the OCP exam !
i think testing the knowledge of loops and scope of variables in the OCA exam is normal but in the OCP exam while we don't expect that !! this is what i was asking about, it could happen or not and if it could ? it could be in many questions ?
Jonathan Damron wrote:if I analyze every single public static main method for wrong case or some missing part then it does take a little bit of focus away from looking for OCP gotchas
Jonathan Damron wrote:that it is causing me to take longer than I should on the main objectives of the OCP
This is also my concern: The Time.
Historically, up through the OCP 7, the exam creation team worked hard to remove any such questions. For the OCP 8, we participated in the 1st phase of exam creation, but we didn't participate in the final question review process. I would hope that the final reviewers removed any such questions, but I wouldn't guarantee it.
But in the end, I don't think there's any way around the fact that while you're taking the exam, you have to read the code. What I will say is that for most candidates, there is plenty of time during the exam.
What's with those opening curly braces being all alone on their own line?
Actually it's only sort of a joke, I'm pretty sure that on the real exam, opening curly braces will be at the end of the previous line.
And - at the risk of starting a war - I think that's where they should go. ;)
No, if you are going to risk life and limb it has to be over spaces vs tabs.
Elisabeth Robson wrote:No curly brace wars people! The risk to life and limb isn't worth it....
I was taught Allman indentation and the old Sun style guide likes K&R indentation, so the exam will have K&R indentation.