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 Java Annotations?

0 Answers  


What for read() function?

3 Answers  


Can we execute a program without main() method?

0 Answers  


what are the major differences between jdk1.4 and jdk1.5?

2 Answers   Cap Gemini, Crimson Logic, Infosys, TCS, Tenth Planet,


Why string is immutable or final in java

0 Answers  


What are the similarities between an array and an ArrayList?

3 Answers  


What is the difference between a break statement and a continue statement?

0 Answers  


what is the use of bean managed and container managed with example?

0 Answers   EDS,


Keywords in Exceptions?

2 Answers  


How do you use substring in java?

0 Answers  


To the class members how can we provide security?

1 Answers   Aspire,


How to display names of all components in a Container?

0 Answers   Microsoft, Wipro,


Categories