what is the difference between HashMap and Hashtable
Answer Posted / avinash
1. Hash map is not is synchornized
2. Hash map is allow null value only at once.
3. iterator is fail safe
1.Hash table is synchronized.
2. Hash table isnot allow null value.
3. enum hashtable is not.
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Tell me the latest versions in java related areas?
What does main method?
How many types of methods are there?
What are the advantages of passing this into a method instead of the current class object itself?
what are three ways in which a thread can enter the waiting state? : Java thread
Is a boolean variable?
What is the difference between an object-oriented programming language and object-based programming language?
What is boolean example?
what is the purpose of "virtual"?
What environment variables do I need to set on my machine in order to be able to run java programs?
What is replaceall in java?
What is this keyword in java?
What is java in detail?
What are the differences between wait() and sleep()?
Can array grow dynamically in java?