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 |
How do you read a char in java?
What is the use of bin and lib in JDK?
what is thread in Java ?
Compare Mutex and Semaphore in java.
What are benefits of java?
What is meant by binding in rmi?
What is the default value of local and global variables?
How are commas used in the initialization and iteration parts of a for statement?
What is string and its types?
Why do we need strings in java?
What are variable names?
which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?