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
Name three subclasses of the component class?
Which are the different segments of memory?
What class is used to create Server side object ?
Are there books about seam?
How to deploy Jar, War files in J2EE?
What is the diffrence between a local-tx-datasource and a xa-datasource?
Which component handles cluster communication in jboss?
Why do threads block on i/o?
Where can I find seam examples and documentation?
What’s jboss cache in short?
when A client sent a request to the server to open facebook page and close the browser after this request .at that time the same user do login by using a different browser then that session id will exist or not for the same client??
What restrictions are placed on the values of each case of a switch statement?
What happens when a thread cannot acquire a lock on an object?
Why doesn’t the focus feature on the tag work in every circumstance?
When is the best time to validate input?