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

What is run time allocation?

0 Answers   Fidelity,


Is 0 true or is 1 true?

0 Answers  


Can I create any Marker Interface? If yes then how can I use it???

4 Answers  


What is static method with example?

0 Answers  


How do you replace a string in java?

0 Answers  






What is the java reflection api? Why it’s so important to have?

0 Answers  


How do constructors use this() and super()?

0 Answers  


What is starvation?

0 Answers  


JSP is by default thread safe or not? what is the meaning of isThreadSafe="true" and isThreadSafe="false". Explain it? Thanks, Seenu

9 Answers   Huawei,


What’s the difference between unit, integration and functional testing?

0 Answers  


Write a program to check for a prime number in java?

0 Answers   Cyient,


Is main a keyword in java?

0 Answers  


Categories