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

who can we create the object of a class? in how many ways we can create it (max 5)

2 Answers  


What are the data types supported by java? What is autoboxing and unboxing?

1 Answers  


What is unicode used for?

1 Answers  


What is overloading and overriding in java?

1 Answers  


I want my class to be developed in such a way that no other class (even derived class) can create its objects. Define how can I do so?

1 Answers  


Why set is used in java?

1 Answers  


what is Dictionary? and what purpose it is used for?

3 Answers  


What are the common problems you have faced while implementing Java?

1 Answers   IBM,


Can we increase array size dynamically in java?

1 Answers  


For technical interview question please sir send me because tomorrow my interview

1 Answers   FactSet Systems,


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

1 Answers  


whst is encapsulation?when u encpsulate actually while devoloping code?

7 Answers   Amdocs, MGL,


Categories