Series: Subject: Topic:
Question: 36 of 46

What is HashMap and Map?

Map is Interface and Hashmap is class that implements that and its not serialized HashMap is non serialized and Hashtable is serialized.
Asked by: Interview Candidate | Asked on: Dec 18th, 2003
Showing Answers 1 - 2 of 2 Answers

Answered On : Mar 31st, 2007

An object that maps keys to values. A map cannot contain duplicate keys; each key can map to at most one valueThis implementation provides all of the optional map operations, and permits null values and the null keymap implementations, like the TreeMap class, make specific guarantees as to their order; others, like the HashMap class, do not.

Login to rate this answer.

Answered On : Jul 23rd, 2014

HashMap works on the principle of hashing. In order to understand the working of HashMap one has to understand hashing.

Below link can be useful to find out the working of HashMap

Login to rate this answer.

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

Related Open Questions



twitter fb Linkedin GPlus RSS


Interview Question

 Ask Interview Question?


Latest Questions

Interview & Career Tips

Get invaluable Interview and Career Tips delivered directly to your inbox. Get your news alert set up today, Once you confirm your Email subscription, you will be able to download Job Inteview Questions Ebook . Please contact me if you there is any issue with the download.