what is hashmap& hashtable with example?
Answer / siva kumar g.
Both are collection of objects.
Both are used to store the key , value pairs.
Hashtable is synchronized where as Hashmap is not.
Hashtable does't allow the null values.
| Is This Answer Correct ? | 7 Yes | 1 No |
Why is string builder not thread safe?
What is onClassLoader in java?
Can singleton class be serialized?
Difference between character constant and string constant in java ?
How do I enable java in safari?
In Java, what are public static void main string args?
What is the top class of AWT event hierarchy?
What is hashing principle in java?
What is the method in java?
different between exception and error? explaim check and uncheck exception
How many types of packages are there in Java?
Why do we declare a class static?