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.

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

How many types of flags are there?

1017


What is hash table in java?

1019


What is a string what operation can be performed out with the help of a string?

1050


Are arrays immutable in java?

1084


Can we make the abstract methods static in java?

1060


What sorting algorithm does javascript use?

984


How many bits is a word?

1004


Is it possible to compare various strings with the help of == operator?

995


What is meant by the value of a variable?

921


What is the lifetime and scope of a variable?

1016


what is the difference between process and thread? : Java thread

991


What is the collections api in java programming?

979


Can a boolean be null java?

975


What is the use of parseint in java?

1022


Write a function to print Fibonacci series and Tribonacci series?

1184