Difference between Map & Hashmap
Answers were Sorted based on User's Feedback
Answer / seema
Map is an interface and HashMap is the class that implements
that interface
Is This Answer Correct ? | 17 Yes | 2 No |
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 |
Can we have two main methods in a java class?
Is there a way to increase the size of an array after its declaration?
Why is java multithreaded?
Difference between String and String Buffer?
what is wrapper class and its uses?
What is java and their uses?
Is a method a function?
Write code to implement bubble sort in java?
what is purpose of writting public static void main(Strind arg[]) in java..?
Define how can we find the actual size of an object on the heap?
Who is the owner of java?
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?