Answer is h. ie. given as LinkedHashSet is subclass of HashSet. But in K&B BK. pg. 422 in the collection hierarchy diagram both HashSet and LinkedHashSet are shown derived from Set. So is the diagram wrong ?? (It should have shown the LinkedHashSet as subclass of HashSet) Kindly confirm. Thanks,
"The man who can drive himself further once the effort gets painful is the man who will win." <br />Roger Bannister
Hi Vishy, You're correct. Now that class and interface hierarchy chart looks simplified anyway, probably on purpose, as AbstractSet and AbstractCollection are missing. Regards, Phil. [ January 31, 2004: Message edited by: Philippe Maquet ]
I think the diagram is correct, but, on purpose, we only included those interfaces, classes, and relationships that are included in the exam. Should I be embarrassed yet again ? The important concepts for the exam are about Sets, Lists, and Maps, that's what we focused on... [ January 31, 2004: Message edited by: Bert Bates ]
Spot false dilemmas now, ask me how!
(If you're not on the edge, you're taking up too much room.)
Would you turn that thing down? I'm controlling a mind here! Look ... look at the tiny ad ...
a bit of art, as a gift, that will fit in a stocking