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

How to create packages in java?

953


What is java beans?

1004


How can an exception be thrown manually by a programmer?

1004


Which browsers work with java?

1078


A person says that he compiled a java class successfully without even having a main method in it? Is it possible?

1059


How can you make a class serializable in java?

991


Explain the difference between association, aggregation and inheritance relationships.

1090


What is mvc in java?

1018


What is a get method?

1057


Why main() method is public, static and void in java ?

1104


what is mena by object block any what is the use of that

2216


Why we use multi threading instead of multiprocessing?

1067


Does substring start with 0?

990


What are disadvantages of java?

1001


Which is better stringbuffer or stringbuilder?

920