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

What is meant by class and object in java?

0 Answers  


How to provide security in java

0 Answers   Infosys, TCS, Tech Mahindra,


What is difference between float and double?

0 Answers  


What is the default initialized value of a boolean type variable?

3 Answers  


Why are parameters used in functions?

0 Answers  


diff. b/w JAVA and javascript...

3 Answers   NIIT,


Why we use protected in java?

0 Answers  


3) Suppose you are a very rich person, having 50 rooms and you have lost the key for one of the room's. How effectively you can find this key? (Qs2 and Qs3 are related)

3 Answers   RBS,


What is an example of character?

0 Answers  


Which programming language is most secure?

0 Answers  


What is the difference between superclass and subclass?

0 Answers  


Print Vertical traversal of a Binary Tree.

0 Answers   Amazon,


Categories