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 is meant by class and object in java?
How to provide security in java
0 Answers Infosys, TCS, Tech Mahindra,
What is difference between float and double?
What is the default initialized value of a boolean type variable?
Why are parameters used in functions?
diff. b/w JAVA and javascript...
Why we use protected in java?
3) Suppose you are a very rich person, having 50 rooms and you have lost the key for one of the room's. How effectively you can find this key? (Qs2 and Qs3 are related)
What is an example of character?
Which programming language is most secure?
What is the difference between superclass and subclass?
Print Vertical traversal of a Binary Tree.