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 collatration?
what is the purpose of the runtime class?
Tell me the latest versions in java related areas?
Is static a keyword in java?
Explain what do you mean by functional overloading in java?
What is double checked locking in singleton?
Wha is the output from system.out.println(“hello”+null); ?
Can a abstract class be declared final?
What are the data types supported by java? What is autoboxing and unboxing?
What is the difference between hashmap and hashtable in java?
what type of questions asked for barclays technologies pune please send urgent
Define iterator and methods in iterator?
What is n in java?
How are java objects passed to a method and what are native methods?
What is internal variable?