InterviewSolution
| 1. |
Difference Between Hashmap And Hashtable In Java? |
|
Answer» Though both HashTable and HashMap store elements as a (key, value) pair and use hashing technique to store elements, moreover from Java v1.2, HashTable class was retrofitted to implement the MAP interface, making it a member of the Java COLLECTIONS Framework. But there are certain difference between the TWO -
Though both HashTable and HashMap store elements as a (key, value) pair and use hashing technique to store elements, moreover from Java v1.2, HashTable class was retrofitted to implement the Map interface, making it a member of the Java Collections Framework. But there are certain difference between the two - |
|