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 |
Explain restrictions for using anonymous inner classes?
What is an object?s lock? Give name of object?s that have locks?
What is set in java?
What are the different types of sorting in java?
What is append in java?
In Inheritance if we are implementing Multi level inheritance and all class having same name of variable and now i want to access each class variable and how it is possible?
How to stop a thread in java? Explain about sleep () method in a thread?
can you program for reverse string?
What is java thread dump, how can we get java thread dump of a program?
What is a null check?
What language is pass by reference?
Differentiate between static and non-static methods in java.