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

how to use this key word in java programming?

7 Answers  


What is the hashcode () and equals () used for?

0 Answers  


Describe inheritance as applied to java?

4 Answers  


What is an interface in java? Explain

0 Answers  


What is the final keyword denotes?

0 Answers  






Why should I use abstract class?

0 Answers  


What is static class

0 Answers   EDS,


Can we cast any other type to boolean type with type casting?

0 Answers  


How can a class be accessed, If no access modifiers are declared?

4 Answers  


Differentiate between static and non-static methods in java.

0 Answers  


Is it possible to override the main method?

0 Answers  


How do you use compareto in java?

0 Answers  


Categories