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 differences exist between iterator and listiterator?

0 Answers  


What is the relationship between class and object?

0 Answers  


can we take more than one null values for Unique constraints.

1 Answers   3i Infotech,


what is the use/perpose of having a method antive?

2 Answers  


What is void keyword?

0 Answers  


What is the use of a conditional inclusion statement in Java ?

0 Answers   Global Logic,


What is anagram number?

0 Answers  


What java is used for?

0 Answers  


How do you create a reference in java?

0 Answers  


Can you override a final method?

0 Answers  


What is the difference between a loader and a compiler?

0 Answers   Syntel, Visa,


What is the difference between Java1.4 and Java1.5

0 Answers   NIIT,


Categories