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
What if the static modifier is removed from the signature of the main method?
Is the session factory thread safe?
What is the argument type of a programs main() method?
whats is statement and procedure
How are the elements of a cardlayout organized?
What’s jboss jbpm?
What is chat area? Explain.
What is the purpose of the wait(), notify(), and notifyall() methods?
What is the difference between the string and stringbuffer classes?
What are the steps to write p-to-p model application?
What is the difference between system.out ,system.err and system.in?
what is meant by JRMP?
what are RemoteObjects?
how do you Handle Front End Application data against DB with example?
What is the infobus?