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
Which is better stringbuffer or stringbuilder?
What is difference between static and abstract class?
What are the important features of Java 9 release?
What are the methods used to implement for the key object in the hash map?
Can a class have an interface?
What is method overloading in JAVA? Why is it not present in C ?
What are the restrictions imposed by a Security Manager on Applets?.
What about member inner classes?
Describe what a thread-local variable is in java?
In the below example, how many string objects are created?
How finally used under exception handling?
What is the applet security manager, and what does it provide?
Why does java not allow multiple public classes in a java file ?
What modifiers may be used with an inner class that is a member of an outer class in java programming?
Is it possible to compare various strings with the help of == operator?