About Question com.enthuware.ets.scjp.v6.2.807 :

Help and support on OCA OCP Java Programmer Certification Questions
1Z0-808, 1Z0-809, 1Z0-815, 1Z0-816, 1Z0-817

Moderator: admin

Post Reply
TwistedLizard
Posts: 57
Joined: Sat Mar 01, 2014 1:48 pm
Contact:

About Question com.enthuware.ets.scjp.v6.2.807 :

Post by TwistedLizard »

On my system, toString() on the concrete instances of Map.Entry<K,V> that get returned by a TreeMap<String, String> have the form:

c=cat
not
c - cat

as quoted in the answers.

Although this is a java 6 exam, I'm using javac 1.7.0_03 and java 1.7.0_60. Did it change between java versions, or is it just a typo?

admin
Site Admin
Posts: 10388
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

Re: About Question com.enthuware.ets.scjp.v6.2.807 :

Post by admin »

Sorry, I can't test it because I don't have Java 6 my machine anymore but since you are preparing for SCJP 6, you might want to try it out.
Though I suspect the author wasn't focusing on the exact format because none of the options uses = and there is no "None of the above" kind of options.

Also, the problem statement says, "What will be returned by the call to tailmap.pollFirstEntry()" and not what will be printed.

TwistedLizard
Posts: 57
Joined: Sat Mar 01, 2014 1:48 pm
Contact:

Re: About Question com.enthuware.ets.scjp.v6.2.807 :

Post by TwistedLizard »

ok. I was doing a practice test where the number of checkboxes I had to select wasn't indicated, so one option would have been to tick none of them.

In the real test however, I'll know how many answers I need to provide.

Thanks for your help.

Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests