what is the difference between HashMap and Hashtable
Answer Posted / green
HashTable is a Legacy Class,where as HashMap is not.
HashTable is Syncronized,where as HashMap is not.
HashTable does not allow any null keys nad values, HashMap
allows one null key and 'n' number null values.
comparatively HashMap is faster then HashTable
Is This Answer Correct ? | 3 Yes | 1 No |
Post New Answer View All Answers
What is natural ordering in java?
What is main in java?
Can we print null in java?
What is a java object and java application?
Which package has light weight components?
what is singleton in java?
Explain the use of sublass in a java program?
What are the restrictions imposed by a Security Manager on Applets?.
What is a method signature java?
What is the synonym of string?
Explain about wait() method?
What is string args [] in java?
What are the advantages of packages in java?
Is alive method in java?
Is string a data type in java?