Difference between Map & Hashmap

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


Please Help Members By Posting Answers For Below Questions

How do you convert an int to a double in java?

596


What is jvm? How its run?

664


How do you calculate square roots?

581


Is java a compiler?

569


What is stored procedure. How do you create stored procedure ?

1497






What are access specifiers available in java?

580


How do you convert an int to a string in java?

546


How the metacharacters are different from the ordinary characters?

567


What about anonymous inner classes in java?

563


What are the six ways to use this keyword?

610


Explain about varargs in java?

584


What is the use of a conditional inclusion statement in Java ?

590


Why are the destructors for base class and derived class called in reverse order when the program exits

1710


How do you convert boolean to boolean?

525


Write a java program for binary search?

611