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 difference between hash mapping and hash table?

5 Answers   NDS, Wipro,


What is meant by flickering?

0 Answers  


java program with complete 4 oops concepts implemented example

0 Answers   Infosys, NIIT,


Is Java a dying language?

0 Answers  


Is assembly language a low level language?

0 Answers  


How is final different from finally and finalize?

0 Answers  


What happens when I use / and % with a negative numerator?

0 Answers  


Does list maintain insertion order java?

0 Answers  


What is the difference between an object-oriented programming language and object-based programming language?

0 Answers  


Explain Basics of OOP Language in java

0 Answers   Atos Origin,


Why sleep()is in Thread and wait() in Object class? Why can't I have both in one class or vice versa?

1 Answers  


How to make a non daemon thread as daemon?

0 Answers  


Categories