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 the important features of Java 10 release?
Can you inherit a constructor java?
In the below example, how many string objects are created?
What are internal variables?
What is the difference between throw and throws in java?
what are three ways in which a thread can enter the waiting state? : Java thread
What is the difference between @before and @beforeclass annotation?
What is the difference between the prefix and postfix forms of the ++ operator?
How can we create a thread in java?
What are the drawbacks for singleton class?
How to create an immutable class?
Which category the java thread do fall in?
How do I compare two strings in word in java?
How to use Media tracker Class.
Can a method be overloaded based on different return type but same argument type?