Which of the following are supported by Java?
Answer is "B;D". But answer description says that only one answer is correct "B". So optionWhich of the following are true?
seems to be a Typo.D. If statements that do not compile are removed, output contains two
Answer is "F" (A runtime exception is thrown). But LocalDate has no static method LocalDate.of(int, int). So, by answer description, it seems to be a Typo. Else, correct answer should be "E" (The code does not compile). And it is really does not compile in current version.What is the output of the following code?
nick woodward wrote:there are differences i believe between references and a pointers, although I'm no expert. java has the former, but no pointers.
*edit: here's a good answer: http://programmers.stackexchange.com/questions/141834/how-is-a-java-reference-different-from-a-c-pointer
having said that, maybe the JVM uses pointers under the hood, but i'd guess the class is just poorly named.
as for your other questions - without having the book, or a more complete description of the question and answer(s) it's hard to know exactly what you mean.
Evgeny Kapinos wrote:I've passed second online mock exam
Evgeny Kapinos wrote:1. In question:
Which of the following are supported by Java?
Answer doesn't include option "F" (Pointers). But wait. What about NullPointerException? Seems Java supports Pointers in terms of Java. This answer really confuses me. I've read answer description few times, but I disagree with it.
Evgeny Kapinos wrote:2. In question:
Answer is "B;D". But answer description says that only one answer is correct "B".
Evgeny Kapinos wrote:3. In question:
Answer is "F" (A runtime exception is thrown). But LocalDate has no static method LocalDate.of(int, int). So, by answer description, it seems to be a Typo. Else, correct answer should be "E" (The code does not compile). And it is really does not compile in current version.
Evgeny Kapinos wrote:I've passed second online mock exam and have some remarks about it:
Roel De Nijs wrote:1/ ArrayIndexOutOfBounds should be ArrayIndexOutOfBoundsException
2/ IOException and NullPointerException have redundant parantheses at the end
3/ IOException is the only class which is fully qualified (not very consistent, but probably because it's also the only class which is not in the java.lang package)
[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:Congrats! Good luck on the actual exam. I expect you to do well as the mock exams are harder than the real exam.
Evgeny Kapinos wrote:I've passed real exam with result 95%. For preparation I used only your guide + sybex online mock exams. I certainly can confirm that it is enough for preparation. It covers All major topics. Also questions really easiest. So guide creates credit for future.
[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
What kind of corn soldier are you? And don't say "kernel" - that's only for this tiny ad:
Low Tech Laboratory
https://www.kickstarter.com/projects/paulwheaton/low-tech-0
|