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 |
What are "class access modifiers" in Java?
What is the Concept of Encapsulation in OOPS
What are the problems faced by java programmers who don't use layout managers?
What is the immediate parent class of the Applet class?
What was java originally called?
What is Mutex (Mutual Exclusion Object) ?
When we should use serialization?
What does next mean in java?
Explain about sets?
Explain how to force the garbage collection in java.
When does a class need a virtual destructor?
what is the context