difference between HashMap, Hashset and hashTable?
Answer Posted / sujitpingale
HashMap -
1) unsynchronized and unordered
2) Allow one null key , multiple null values
HashTable -
1) synchronized and unordered
2) Doesn't allow null key and value
HashSet -
1) synchronized and ordered
2) Sort elements in ascending order , doesn't allow duplicate elements
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is table mutation and how do you avoid it?
how i secure my site with the https protocol.what are the steps?
What are the pros and cons of detached objects?
What’s jboss jbpm?
what are RemoteObjects?
Explain about RMI Architecture?
what are the activation groupworks?
Explain ioc concept?
How are commas used in the intialization and iteration parts of a for statement?
How to pass parameters in RMI?
What is an abstract method?
what are the advantages of JTA over JTS?
What is re-entrant. Is session beans reentrant. Is entity beans reentrant?
what are getters and setters in Java with examples?
Should synchronization primitives be used on bean methods?