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 yield() and sleep()?
List any five features of java?
What is the exception hierarchy in java?
What are the difference between composition and inheritance in java?
What does exclamation mean in java?
What is java in detail?
what is object slice?
What is the purpose of tostring() method in java?
What is the purpose of the return statement?
is there a separate stack for each thread in java? : Java thread
What is static import?
What is the difference between abstract classes and interfaces?
String class is defined under which package in java?
What is the symbol for line break?
Which class cannot be a subclass in java?