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
Difference between string s= new string (); and string s = "abv";?
What is formatted output?
What is the purpose of an interface?
How many types of constructors are used in java?
What is the use of bufferedreader?
How many digits can a float hold?
What are the advantages and disadvantages of reference counting in garbage collection?
How do you clear an arraylist in java?
How do you empty a list in java?
Is string passed by reference in java?
What modifiers may be used with a top-level class?
How do you convert bytes to character in java?
What two classes are used to read data only?
What variables are stored in stack?
How the interruptible method gets implemented?