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


Please Help Members By Posting Answers For Below Questions

What are keywords and reserved words in java?

807


What is time complexity java?

786


how to create daemon thread in java?

846


What are the two types of exceptions in java? Which are the differences between them?

793


How does java enable high performance?

941


How are java objects passed to a method and what are native methods?

840


If you do not want your class to be inherited by any other class. What would you do?

800


What is bytecode in java ?

865


Explain a situation where finally block will not be executed?

786


What is the access scope of a protected method?

764


What are the actions that can occur when a thread enters blocked state?

828


What is bitwise complement?

736


What is a dynamic array java?

731


What are functions in java?

725


What are the two ways to create a thread?

763