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 final keyword in java?
Find the value of a specified element of the array arr[i] where 0 <= i <= n-1
which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?
What is class forname used for?
When parseint method can be used?
What are methods and how are they defined?
What is gc()?
How does java pattern compile work?
What is this keyword in java?
What's the difference between an abstract class and interface in java?
Can a hashset contain duplicates java?
Is a copy constructor?
What is java lang object?
Is 0 true or is 1 true?
What is null object in java?