What is the difference between array and arraylist?
what is the difference between arraylist and linkedlist?
Answer Posted / madhu sudana rao
first one:
array is fixed length,arraylist is growing array(means
they have no fixed length , if u add more the size
arraylist size incress and vise versa)
seond one:
if add and remove the elements in the middle takes more
time by using arrylist in that time use linkedlist
arrylist is good for retiveing the elements in specific
position
arraylist is faster than linkedlist for random accesing
of elemnets
| Is This Answer Correct ? | 20 Yes | 1 No |
Post New Answer View All Answers
What is token in java?
What is deserialization?
Why array is used in java?
Explain about assignment statement?
What is lambda in java?
Can a constructor be made final?
Can we have a method name same as class name in java?
What do you mean by platform independence of Java?
What is keyword and identifier?
What is hashtable and explain features of hashtable?
What is the difference between hashmap and hashtable in java?
What string is utf8?
Is intellij better than eclipse?
What is a null point?
Explain the JDB in depth & command line.