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 java ceil?
What is a local, member and a class variable?
What is difference between arraylist and list in java?
Can we overload the methods by making them static?
Explain 5 features introduced in jdk 1.7?
How can we avoid including a header more than once?
Are arrays passed by reference in java?
How do you sort a set in java?
What is java lang object?
What are constants and how to create constants in java?
What does it mean to flush a file?
What are the types of java languages?
What is a map in java?
What is a static method in java?
Is call by reference possible in java?