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


when to use ArrayList and when to use HashMap in
webApplication.



when to use ArrayList and when to use HashMap in webApplication...

Answer / naseer

When you want to retrieve use ArrayList
Dont use ArrayList if the frequent operation is insertion
and deletion instead use LinkedList.

Use HashMap if you want to store interms of Key and Value
pair .
Don’t use a HashMap unless you need the lookup feature. It
takes more time to build a HashMap than an ArrayList.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is a lightweight component?

0 Answers  


what is prepare statement? what is calabedtarement?

1 Answers   Symphony,


Is it possible to write static method in abstract class? justyfy your answer?

5 Answers   Hexaware,


What is the difference between equals() and?

0 Answers  


what is the use of StringBuffer?

2 Answers   Accenture,


Explain treeset?

0 Answers  


What is object in java?

0 Answers  


What is final int?

0 Answers  


What is Overriding and how can it be used?

7 Answers   Consagous, Wipro,


What is the blank final variable?

3 Answers  


Explain the use of shift operator in java. Can you give some examples?

0 Answers  


What is an iterator interface in java programming?

0 Answers  


Categories