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
Difference between stack and queue?
What is data string?
How do you avoid global variables?
What are the procedures?
What is difference between classpath and path variables in java?
Why is java multithreaded?
Can we create an object of static class in java?
what is mutual exclusion? : Java thread
When a lot of changes are required in data, which one should be a preference to be used? String or stringbuffer?
placement papaers of spring computing technology
If try block is successfully executed, Then Is Finally block executed?
What is an example of a boolean?
What do you mean by pointer value and address?
Can a constructor be private and how are this() and super() method used with constructor?
What is fundamental datatype?