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 |
What differences exist between iterator and listiterator?
What is the relationship between class and object?
can we take more than one null values for Unique constraints.
what is the use/perpose of having a method antive?
What is void keyword?
What is the use of a conditional inclusion statement in Java ?
What is anagram number?
What java is used for?
How do you create a reference in java?
Can you override a final method?
What is the difference between a loader and a compiler?
What is the difference between Java1.4 and Java1.5