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

Which variables are stored in stack?

0 Answers  


Why can't you declare a class as protected?

0 Answers  


What is t type java?

0 Answers  


Difference between a class and an object?

0 Answers  


What happens if an exception is throws from an object's constructor?

0 Answers   Amazon,






What is the benefit of abstract class?

0 Answers  


Can we access a database using applets?

2 Answers   Hewitt,


How to make a class immutable?

15 Answers   Bosch, TSYS,


What are inbuilt functions?

0 Answers  


what do you understand by synchronization? Or what is synchronization and why is it important? Or describe synchronization in respect to multithreading? Or what is synchronization? : Java thread

0 Answers  


how to handled exceptions & erros in ejb?

1 Answers   Satyam,


What is the final variable?

0 Answers  


Categories