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

List some features of the abstract class.

0 Answers  


Does java arraylist maintain insertion order?

0 Answers  


Can you override private or static method in java?

0 Answers  


Is void a data type in java?

0 Answers  


Where import statement is used in a java program?

0 Answers  


What is finally and finalize in java?

0 Answers  


What is Garbage Collection in Java

0 Answers   Wipro,


Is string a keyword in java?

1 Answers  


What is Java Annotations?

0 Answers  


Why do we create threads in java?

0 Answers  


You can create a string object as string str = “abc”; why cant a button object be created as button bt = “abc”;? Explain

0 Answers  


Explain in detail about encapsulation with an example?

4 Answers  


Categories