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 |
What is the dot operator?
What is use of inner class in java?
How do you change an int to a string?
Java run-time system generates What class of exceptions?
why not override thread to make a runnable? : Java thread
What is replaceall in java?
What is Java Reflection API? Why it’s so important to have?
What is the largest data type in java?
wHAT IS DEFAULT SPECIFIER IN JAVA wHAT IS DEFAULT CONSTRUCTOR IN JAVA wHAT IS DEFAULT METHOD IN JAVA
Explain about collection interface in java?
What are the two ways to create a thread?
Write a program to print fibonacci series