Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to implement Hash Map?

Answer Posted / rice


HashMap is a class that implements Map interface.

HashMap underlined data structure is Hash table.

If we want to describe the group of objects as key ,value
pairs then we go for HashMap class.

key are not duplicated but value can be any thing.

null insertion is possible.

insertion order is not preserved.

HashMap hm=new HashMap();
hm.put(1, "rice");
hm.put(3, "rice");
hm.put(2, "shine");
System.out.println(hm);

Is This Answer Correct ?    2 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

If you’re overriding the method equals() of an object, which other method you might also consider?

885


differences between iterator and spliterator in java se 8?

892


What is loose coupling in java?

827


What does @override mean in java?

883


I get an exception if I remove the static modifier from main?

960


Is it better to learn java or python?

869


Why do we need new date and time api in java se 8?

828


What are the benefits of a jar file?

969


What is javax annotation generated?

865


What are tags in java?

799


What is an actionevent in java?

899


Which version of jdk is required for netbeans 8.0 2?

798


What is javacpl?

866


How can you work with permissions from your .net application? : java security

855


What is jsr in java?

857