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
What is the use of coding?
Why is singleton class used?
What is callable java?
How do you read and print a string in java?
When will we prefer to use set and list in java and why?
How big is a 32 bit integer?
What is meant by javabeans?
What is a 16 bit word?
What are anonymous inner classes?
What is public static?
What is the major advantage of external iteration over internal iteration?
What is try-with-resources in java?
What is api data?
What is unicode full form?
What is an abstract class and what is it’s purpose?