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 |
Which method returns the length of a string?
What are static variables and functions?
Where is const variable stored?
How to make a method thread safe without using synchronized keyword?
8 Answers Persistent, Societe Generale,
Can we store variables in local blocks?
How we can make copy of a java object?
What is a jagged array in java?
What is the difference between stringbuffer and stringbuilder?
What state is a thread in when it is executing?
Can static methods be overridden?
What are jee technologies?
What is unicode full form?