Roel De Nijs wrote:Can you specify some more details about the question? chapter, page, question number? Because I tried to track it down, but without success.
A public field can indeed be accessed from anywhere and can also be modified from anywhere unless it is marked final. So you are correct and it might be considered another errata item. Therefore the requested info is nice to know
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Jeanne Boyarsky wrote:You are correct that a final field would be an exception. If the question considers "final", no answers would be correct, right? That would be a clue.
Jeanne Boyarsky wrote:Also, remember that the real exam tells you how many questions are correct. Which means you can figure out about edge case answers that way.
Zhifu Ge wrote:
Jeanne Boyarsky wrote:Also, remember that the real exam tells you how many questions are correct. Which means you can figure out about edge case answers that way.
Really? Are you sure? That would be awesome!
[OCP 21 book] | [OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Jeanne Boyarsky wrote:
Zhifu Ge wrote:
Jeanne Boyarsky wrote:Also, remember that the real exam tells you how many questions are correct. Which means you can figure out about edge case answers that way.
Really? Are you sure? That would be awesome!
I should have said "how many answers" are correct (not how many questions). But yes, I am sure. It's been true on past exams and was still the case on the beta for Java 8 as well.
Zhifu Ge wrote:Hi, it's from OCA Test 2 in the CD-ROM, it's number 7 but I think the number may be randomized.
Zhifu Ge wrote:
Jeanne Boyarsky wrote:You are correct that a final field would be an exception. If the question considers "final", no answers would be correct, right? That would be a clue.
First, I think we are supposed to evaluate each choice independently. Secondly, even if a final filed is assumed for every choice, C and E will still be correct.
Zhifu Ge wrote:
Jeanne Boyarsky wrote:Also, remember that the real exam tells you how many questions are correct. Which means you can figure out about edge case answers that way.
Really? Are you sure? That would be awesome!
I have taken 3 ocpjp exams and all of them mentioned the number of correct answers. And other ranchers taking the exam didn't have mentioned another exam format. So it definitely still applies! Therefore K&B7 will probably be (a little) harder than the actual exam. You don't know how many answers you need to select in the mock questions/exams, so you are required to evaluate all of them. On the exam you know exactly how many choices you must select. So even if you don't have a clue at all, you have a (small) chance to have this question correct and score 1 point
Hope it helps!
Good luck Thursday with your exam!
Zhifu Ge wrote:On a side topic, I am curious why one would take the OCPJP exam more than once. I assume you are really good with Java and must have passed with flying colors on the first try.
Zhifu Ge wrote:I don't feel comfortable enough so I have rescheduled my test to next Monday.
Roel De Nijs wrote:
Zhifu Ge wrote:On a side topic, I am curious why one would take the OCPJP exam more than once. I assume you are really good with Java and must have passed with flying colors on the first try.
Because these were all different Java versions. And with different Java versions you (almost) always have extra features, new syntax,... For example Java 5 had amongst onther things the enhanced for loop, enums and generics. Java 6 had almost nothing new (except for Console, NavigableMap & NavigableSet). Java 7 has a bunch of new things (as you know): multi-catch, try-with-resources, nio2.0,... (and also some new objectives are added to the exam itself: jdbc, concurrency api,...). In Java 8 you'll have lambdas, streams, collectors and so on.
Another reason: while you prepare for these exams, your knowledge is kept up-to-date and refreshed every time, so your knowledge remains fresh in your memory. And that's very useful of course, and even more when you need to coach some team members (then you don't have the time to quickly google). This is also one of the reasons why I do sometimes a technical review of a study guide (like with K&B7
), although the main reason for that is just that I like to nitpick
![]()
And finally: I'm just one of these guys who liked (high) school, learning and taking exams![]()
Zhifu Ge wrote:I don't feel comfortable enough so I have rescheduled my test to next Monday.
That's a very wise decision!Only take the exam when you feel comfortable.
Zhifu Ge wrote:I can help with others now. You guys helped me a lot. I have to give something back.
Henno Vermeulen wrote:I wonder if
1. I'm thinking too deeply now
2. What should I do if I encounter this question on the actual exam, or won't that happen?
Roel De Nijs wrote:
This topic discusses the exact same answer of the exact same question in great detail and provides some useful information about how you should handle this kind of question/answer on the actual exam.
Hope it helps!
Kind regards,
Roel