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 are the main uses of java?

0 Answers  


What are recursive functions? Give some examples?

0 Answers   Axtria, ITC Indian Tobacco Company,


what are the differences between final,finally,finalize methods?

14 Answers   IBM,


How can the checkbox class be used to create a radio button?

0 Answers  


Is empty .java file name a valid source file name?

0 Answers  


What is defined as false sharing in the context of multithreading?

0 Answers  


Explain the scope or life time of class variables or static variables?

0 Answers  


Explain about assignment statement?

0 Answers  


Explain about the dynamic behavior of core java?

0 Answers  


How do you use nextline in java?

0 Answers  


How do you compare characters in java?

0 Answers  


What is the difference between size and length in java?

0 Answers  


Categories