what is the difference between HashMap and Hashtable
Answer Posted / brijendra kumar soni(xavient)
1-Hashmap is nonSyncronized whereas Hastable is Syncronized.
2-Hashmap allows both key and values are Null whereas
Hastable doesnot allow Null values.
3-Hasmap belongs to Collection package whereas Hashtable is
a class.
4-The class Hashmap implements the map interface whereas
Hastable implements the class.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Is {a, n, d} a palindrome? If you are given a random string, is it a palindrome or not?
What is java util concurrentmodificationexception?
What is variable declaration and definition?
What is boolean in java?
What is the synonym of procedure?
explain what is transient variable in java?
What are serialization and deserialization?
Can you call one constructor from another if a class has multiple constructors?
Is there any tag in htm to upload and download files?
What is downcasting?
Is treeset sorted in java?
What are the 4 versions of java?
What are recursive functions? Give some examples?
Define packages in java?
What does I ++ mean?