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 happens if we don’t define serial version uid?

1081


What does singleton mean in java?

1058


What is double data type?

988


How does linkedhashmap work in java?

1081


Why does my function print none?

1006


what state does a thread enter when it terminates its processing? : Java thread

1123


What is maximum size of arraylist in java?

1087


Can we override constructor in java?

1137


What are inbuilt functions?

1046


Explain about core java?

1192


when should you use stringbuilder class in a program?

1028


What is a priority queue java?

1036


Can we make a constructor final?

1081


Why does java have different data types for integers and floating-point values?

1064


Difference between arraylist and hashset in java?

1191