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 thread life cycle in java?
What all access modifiers are allowed for top class ?
How do you represent a space in regex java?
What is downcasting?
What are the uses of java?
Will the compiler creates a default constructor if I have a parameterized constructor in the class?
How do you override a private method in java?
What is dynamic array in java?
Why javac is not recognized?
What is the covariant return type?
can I implement my own start() method? : Java thread
Can we declare main () method as non static?
What is difference between iterator and enumeration in java?
Can we override the static method?
what is interface in java? Explain