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

Can we have two main methods in a java class?

0 Answers  


Is there a way to increase the size of an array after its declaration?

0 Answers  


Why is java multithreaded?

0 Answers  


Difference between String and String Buffer?

3 Answers  


what is wrapper class and its uses?

2 Answers  






What is java and their uses?

0 Answers  


Is a method a function?

0 Answers  


Write code to implement bubble sort in java?

0 Answers  


what is purpose of writting public static void main(Strind arg[]) in java..?

4 Answers   ITC Infotech,


Define how can we find the actual size of an object on the heap?

0 Answers  


Who is the owner of java?

0 Answers  


There can be a abstract class without abstract methods, but what is the need to declare a class abstract if it doesn't contain abstract methods?

5 Answers   HCL,


Categories