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 the difference between a choice and a list?

0 Answers  


What is parsing a sentence?

0 Answers  


To the class members how can we provide security?

1 Answers   Aspire,


What are the steps in the jdbc connection?

0 Answers  


Differentiate between stringbuffer and stringbuilder in java.

0 Answers  


Explain the use of sublass in a java program?

0 Answers  


Write a method that will remove given character from the string?

0 Answers  


Can an unreachable object become reachable again?

3 Answers  


Does java support multi dimensional arrays ?

6 Answers  


What are the types of arrays in java?

0 Answers  


Matrix multiplication only using OOP concepts .

0 Answers  


Why synchronization is important in java?

0 Answers  


Categories