what is the difference between HashMap And HashTable?
Answer Posted / raghu
HashMap only one null key and multiple values. Hashtable
doesn't allow null keys and values, it throws
NullPointerException. Both are not guarantee order. HashMap
is unsyncronized, whereas Hashtable is not.
Is This Answer Correct ? | 0 Yes | 1 No |
Post New Answer View All Answers
What are different exception types exceptions available in java ?
Can we declare array without size in java?
Explain a few methods of overloading best practices in java?
What is static and final keyword in java?
List types of storage classes in java?
What is pojo class in java?
Why use string handling in Java?
What is static keyword?
What are the different access modifiers available in java?
What are unchecked exceptions in java?
What is a variable in java?
Explain the importance of throws keyword in java?
What is the purpose of static keyword in java?
How to do a true java ping from windows?
What is the purpose of an interface?