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
How do you get length in java?
What modifiers are allowed for methods in an interface?
Can we initialize the final blank variable?
What is nextline method in java?
What is the difference between import java.util.date and java .util?
What is the relationship between class and object?
Define inheritance?
Explain different ways of creating a thread?
What happens when I use / and % with a negative numerator?
What is the static keyword?
what is object-oriented programming in java?
How do you download stubs from Remote place?
Make a data structure and implement an algorithm to print all the files in a directory. (The root directory can have sub-directories too.)
Difference between process and thread?
What about static nested classes in java?