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
Is the milky way in a void?
List some oops concepts in java?
When will we use them?
What happens when you invoke a thread’s interrupt method while it is sleeping or waiting?
Can a hashset contain duplicates java?
What do you mean by ordered and sorted in collections in java?
Why static functions are used?
what is the difference between process and thread? : Java thread
What is a lambda expression ? What's its use ?
How do you sort an array in java?
What is the use of parseint in java?
How do you sort in java?
What are the rules for variable declaration?
Can you access non static variable in static context?
How do you sort arraylist in descending order?