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...

I have an HashMap object, which has with key and value pair.
It has 10 keys and values in that object. Now the question
is I want insert new key and value in middle or any where in
that list but not at the end or at the top. Is it possible
or not. If yes how can we achieve this one?

Answer Posted / alka

It is not in the programmers hand to decide location of any
key/value pair in hashmap.These pairs are randomly placed in
Hashmap based on some calculated hash codes.

Is This Answer Correct ?    20 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

design an lru cache in java?

1001


Can you explain inner class.

1072


What are drawbacks of singleton class?

954


Is java code slower than native code?

1057


Explain the importance of thread scheduler in java?

1004


Can the garbage collection be forced by any means?

986


What are latest features introduced with java 8?

1075


What is the main functionality of the remote reference layer?

1992


What are the advantages of passing this into a method instead of the current class object itself?

1667


How to make a read-only class in java?

1153


How do you sort a string in java?

956


What are the actions that can occur when a thread enters blocked state?

1054


What is singleton pattern?

1098


Why java is said to be pass-by-value ?

1034


What is difference between next () and nextline () in java?

984