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 keywords and reserved words in java?
What is time complexity java?
how to create daemon thread in java?
What are the two types of exceptions in java? Which are the differences between them?
How does java enable high performance?
How are java objects passed to a method and what are native methods?
If you do not want your class to be inherited by any other class. What would you do?
What is bytecode in java ?
Explain a situation where finally block will not be executed?
What is the access scope of a protected method?
What are the actions that can occur when a thread enters blocked state?
What is bitwise complement?
What is a dynamic array java?
What are functions in java?
What are the two ways to create a thread?