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 is a lightweight component?
what is prepare statement? what is calabedtarement?
Is it possible to write static method in abstract class? justyfy your answer?
What is the difference between equals() and?
what is the use of StringBuffer?
Explain treeset?
What is object in java?
What is final int?
What is Overriding and how can it be used?
What is the blank final variable?
Explain the use of shift operator in java. Can you give some examples?
What is an iterator interface in java programming?