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
Can an interface be defined inside a class?
Why do we use threads in java?
What is a java list?
Is arraylist zero based?
What does this () mean in java?
which class is the wait() method defined in? : Java thread
Explain about java sdk?
How objects are stored in java?
Difference between string, string builder, and string buffer?
What is Java Annotations?
What is replacefirst in java?
What are the access modifiers available in java?
What is lazy initialization in java?
Difference between ‘>>’ and ‘>>>’ operators in java?
What is a jit compiler?