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 to use this key word in java programming?
What is the hashcode () and equals () used for?
Describe inheritance as applied to java?
What is an interface in java? Explain
What is the final keyword denotes?
Why should I use abstract class?
What is static class
Can we cast any other type to boolean type with type casting?
How can a class be accessed, If no access modifiers are declared?
Differentiate between static and non-static methods in java.
Is it possible to override the main method?
How do you use compareto in java?