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?
About Question com.enthuware.ets.scjp.v6.2.807 :
Moderator: admin
-
- Posts: 57
- Joined: Sat Mar 01, 2014 1:48 pm
- Contact:
-
- Site Admin
- Posts: 10388
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question com.enthuware.ets.scjp.v6.2.807 :
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.
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.
-
- Posts: 57
- Joined: Sat Mar 01, 2014 1:48 pm
- Contact:
Re: About Question com.enthuware.ets.scjp.v6.2.807 :
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.
In the real test however, I'll know how many answers I need to provide.
Thanks for your help.
Who is online
Users browsing this forum: No registered users and 3 guests