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 are different types of states exist for a thread?
What are operators and its types?
What are the two ways of implementing multi-threading in java?
Can we write any code after throw statement?
What is package private scope in java?
Write an algorithm for quick sort?
What is r * in math?
Why does my function print none?
What is a java object and java application?
How can I right-justify a string?
Explain the different forms of polymorphism?
Who is the owner of java?
Can we split string with in java?
Is constructor inherited?
How do you check if an arraylist is not empty?