what is difference betwwen hashmap and hashtable ?
Answer Posted / deep pratap singh
HashMap HashTable
1> Not Synchronized Synchronized
2> can contain null cann't
You may also make HashMap Synchronized using generic
methods. Using Hashtable is bad habit. Try to avoid it.
| Is This Answer Correct ? | 10 Yes | 2 No |
Post New Answer View All Answers
What is meant by interface?
What happens if we override only equals?
What is the covariant return type?
What is a generic code?
What is a java object and java application?
What is the super void?
What are the default and parameterized constructors?
Is a method a function?
What is the purpose of a transient variable?
What does java edition mean?
Explain which of the following methods releases the lock when yield(), join(),sleep(),wait(),notify(), notifyall() methods are executed?
What’s a deadlock?
How can we create objects if we make the constructor private ?
What is an argument in java?
Explain the concept of hashtables?