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

Which One is optimal to choose ? Syncronized hash map or Hash table with single thread model? How can a hash map syncronized with out using syncrozed blocks in programm?

3 Answers   Four soft,


Explain java heap space and garbage collection?

0 Answers  


who was the founder of java

32 Answers   CTS, HCL, ProKarma,


what is difference between servletconfig and servletcontext?

3 Answers   Amdocs,


Explain different forms of polymorphism?

0 Answers  






Explain the difference between scrollbar and scrollpane?

1 Answers  


Can java hashmap have duplicate keys?

0 Answers  


Is null or empty java?

0 Answers  


Can we write method inside a method in java?

0 Answers  


What is charat ()?

0 Answers  


What are parsers? Dom vs sax parser.

0 Answers  


What is ph and buffers?

0 Answers  


Categories