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 finally used under exception handling?
What do you understand by casting in java language?
What is object of class in java?
Which is the best approach for creating thread ?
What are predefined functions?
How we can skip finally block of exception even if some exception occurs in the exception block in java?
Is null a value?
Why java strings are immutable in nature?
What are the methods available in a class?
What is a cup of java?
Can we sort set in java?
What is import java util arraylist?
What is the epoch date?
how to run ecllipse with jettyserver for windows environment using batch file
what is difference betweem home interface and remote interface?