what is hashmap& hashtable with example?



what is hashmap& hashtable with example?..

Answer / siva kumar g.

Both are collection of objects.
Both are used to store the key , value pairs.
Hashtable is synchronized where as Hashmap is not.
Hashtable does't allow the null values.

Is This Answer Correct ?    7 Yes 1 No

Post New Answer

More Core Java Interview Questions

How can constructor chaining be done by using the super keyword?

0 Answers  


Does java linked list allow duplicates?

0 Answers  


What are different types of constants?

0 Answers  


What is string english?

0 Answers  


Are maps ordered java?

0 Answers  


What is Hash Code in Java?

6 Answers   Cognizant,


What are the Abstract Classes provided by Java?

5 Answers   Oracle,


Does hashset allow duplicates in java?

0 Answers  


How do you reverse sort a list in java?

0 Answers  


Why is core java important?

0 Answers  


What is an immutable class?

0 Answers  


What are wrapped classes?

7 Answers   Samsung,


Categories