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 component subclasses that support painting?
What are transaction attributes?
What are the different approaches to represent an inheritance hierarchy?
Is the infobus client side only?
whats is mean by tiles in struts
Difference between swing and awt?
When a thread blocks on i/o?
Is the ternary operator written x : y ? Z or x ? Y : z ?
Write a program to show synchronization?
What is local interface. How values will be passed?
Describe, in general, how java's garbage collector works?
How would you detect a keypress in a jcombobox?
What are the call back methods in entity bean?
Which component handles cluster communication in jboss?
What is the difference between the session.get() method and the session.load() method?