what is the difference between HashMap And HashTable?
Answer Posted / venkateswarlu
HashMap :
->It is a key,value pair.
->key are not duplicated but values can be duplicated.
->Null key is possible.
->It is not Synchronized by default.
Hashtable:
->It is also key,value pair but both are Strings only.
-> Keys are not duplicated but values can be duplicated.
->Null insertion is not possible of both(key and value).
->It is Synchronized by default.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How to convert string to char and vice versa?
What does java final mean?
How a variable is stored in memory?
What are java packages? What is the significance of packages?
How we create object in copy constructor?
Is vector thread safe in java?
How many types of interfaces are there?
Can we declare a class as abstract without having any abstract method?
What is intern method in java?
Is null a keyword in java?
Can we declare an array without size in java?
Explain working of call by reference function invoking.
How do you compare two objects?
What is the difference between iterator and enumeration ?
What is java dot?