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 use switch statement with strings?
What is the purpose of the file class in java programming?
Can a main method be overloaded?
any other way to print the text without using System.out.println() in java?
Does hashset allow duplicates in java?
What happens if a constructor is declared private?
Where we write javascript code in html page?
How u dubugg ur project?
. Differentiate between instance and local variables.
Why vector is used in java?
What is the difference between @before and @beforeclass annotation?
What is a Hash Table? What are the advantages of using a hash table?