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
What is the difference between a vector & an array list?
What does java ide mean?
What is string data type?
How many bits is a word?
A person says that he compiled a java class successfully without even having a main method in it? Is it possible?
Why is java logo a cup of coffee?
What is a class reference?
What is mvc in java?
How to display names of all components in a Container?
Is ruby built on java?
What is qualitative variable?
Can subclass overriding method declare an exception if parent class method doesn't throw an exception?
What is t in generics in java?
How to check if linked list contains loop in java?
How do you generate random numbers in java?