Page 1 of 1
About Question com.enthuware.ets.scjp.v6.2.807 :
Posted: Thu Apr 05, 2018 6:33 am
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?
Re: About Question com.enthuware.ets.scjp.v6.2.807 :
Posted: Thu Apr 05, 2018 6:49 am
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.
Re: About Question com.enthuware.ets.scjp.v6.2.807 :
Posted: Thu Apr 05, 2018 8:14 am
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.