SCJP1.4
"Continuous effort - not strength or intelligence - is the key to unlocking our potential."
*Winston Churchill
Which is what is meant by "ordered" vs. "sorted". So 2&3 are true.Originally posted by Barkat Mardhani:
LinkedHashMap has the keys. But it keeps keys in insertion order or last access order.
Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
quote:
--------------------------------------------------------------------------------
Originally posted by Barkat Mardhani:
LinkedHashMap has the keys. But it keeps keys in insertion order or last access order.
--------------------------------------------------------------------------------
Which is what is meant by "ordered" vs. "sorted". So 2&3 are true.
SCJP 1.4, SCWCD 1.3, SCBCD 1.3
SCJP 1.4, SCWCD 1.3, SCBCD 1.3
My question is: does this constitute a contract? Can/should we assume that from now til eternity HashSet will be backed by a HashMap? There is nothing in its public interface to prevent reimplementation by some other mechanism.This class implements the Set interface, backed by a hash table (actually a HashMap instance).
The Inner that is named is not the true Inner.
"I'm not back." - Bill Harding, Twister
Did you see how Paul cut 87% off of his electric heat bill with 82 watts of micro heaters? |