difference between HashMap, Hashset and hashTable?
Answer Posted / adarsh m thimmappa
HashTable is a hashing based key-value pair data structure
- doesn't allow null as key
- doesn't allow null as value as well
- not thread safe
- oldest map based data structure available since earlier versions of java
HashMap is a hashing based key-value pair data structure
- allow one null as key
- allows multiple null as more than one value
- not thread safe
HashSet is a hashing based set representation
- holds unique set of keys
- internally uses HashMap
- allows one null value
- not thread safe
Is This Answer Correct ? | 0 Yes | 2 No |
Post New Answer View All Answers
whats is statement and procedure
What is the difference between java class and bean?
What are transaction attributes?
What is an abstract method?
What is glasgow?
Can I import same package/class twice? Will the jvm load the package twice at runtime?
wahts is mean by dynavalidatorform in struts/
what is a non-repeatable read?
Is there a guarantee of uniqueness for entity beans?
What method is invoked to cause an object to begin executing as a separate thread?
What is the purpose of the notify() method?
How are the elements of a cardlayout organized?
If your ui seems to freeze periodically, what might be a likely reason?
Can I use javascript to submit a form?
What are the diff types of exception?