Answer Posted / 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 |
Post New Answer View All Answers
What is an immutable class?
What is reverse function?
How do you check if a string is lexicographically in java?
Why Do I Get A "permission Denied" Error After Downloading The .jnlp Java Launcher For The Vkvm?
What is double in java?
What is method reference?
What is thread safe java?
What is the difference between the paint() and repaint() methods in java programming?
Why string is called as immutable?
Why is java called java?
What is string data type?
What is the difference between static binding and dynamic binding?
What is r * in math?
What is a line separator in java?
Why char array is preferred over string for storing password?