Difference between Map & Hashmap

Answers were Sorted based on User's Feedback



Difference between Map & Hashmap..

Answer / seema

Map is an interface and HashMap is the class that implements
that interface

Is This Answer Correct ?    17 Yes 2 No

Difference between Map & Hashmap..

Answer / rajesh

Map is the Interface and Hashmap is the class that
implements that.

Map is the static type of map, while HashMap is the dynamic
type of map. This means that the compiler will treat your
map object as being one of type Map, even though at
runtime, it may point to any subtype of it.

Is This Answer Correct ?    4 Yes 3 No

Post New Answer

More Core Java Interview Questions

Tell me are there implementations for sorting and searching in the java libarary?

0 Answers  


What is singleton class example?

0 Answers  


Can you explain the cs option of java interpreter?

0 Answers  


What are the core java topics?

0 Answers  


why string constant pool in java

2 Answers   TCS,






What is Gang of four design patterns

0 Answers   Infosys,


Explain the use of javap tool.

0 Answers  


What is the purpose of finalization?

4 Answers  


What are adapter classes?

0 Answers  


What restrictions are placed on method overriding in java programming?

0 Answers  


Why stringbuilder is not thread safe?

0 Answers  


please write java program of instanceOf keyword implementation

2 Answers   TCS,


Categories