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

What is ‘has a’’ relationship in java?

1153


what do you understand by the term string with respect to java?

976


Explain jdk, jre and jvm?

914


What are the main differences between the java platform and other platforms?

993


How can you avoid serialization in child class if the base class is implementing the serializable interface?

1022


What is the difference between numeric and integer?

948


Can java inner class be static?

973


Explain when classnotfoundexception will be raised ?

982


What is a map? What are the implementations of map?

1038


What are the Main functions of Java?

1050


Which is best ide for java?

997


What is the generic function?

925


Why wait(),notify(),notifyAll() methods defined in Object class althought we are using in only threads.

2757


What is variable and its types?

967


What is the history of java?

939