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
Why do we declare a class static?
What are the Class Libraries ?
Is there any difference between synchronized methods and synchronized statements?
How do you convert string to int in java?
Is java still relevant?
Who developed java?
What does string intern() method do?
Why array is used in java?
What is class variable java?
How can we create objects if we make the constructor private ?
Can sleep() method causes another thread to sleep?
Explain about version control?
what is the final keyword denotes in java?
How many types of constructors are used in java?
Can the garbage collection be forced by any means?