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 |
design an lru cache in java?
What is append in java?
Describe 2 different ways to concatenate two strings.
what is difference between signed & unsigned char?
How do you check if a string is lexicographically in java?
Can Exception handling we can handle multiple catch blocks?
What is class variable java?
What is audio clip interface? Name few methods of it ?
how can u handle run time exception in java? explain with brief explanation with examples?
Why enumeration is faster than iterator?
What is the purpose of the enableevents() method?
What is difference between java and java ee?