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
Explain about fail safe iterators in java?
Why do we need data serialization?
What is not thread safe?
How can we make copy of a java object?
What about static nested classes in java?
What is bytecode in java ?
Can we sort arraylist in java?
What is collection class in java? List down its methods and interfaces.
If a variable is declared as private, where may the variable be accessed?
What are the differences between abstract class and interface?
how to create constants in java?
What is 32 bit float?
whatis Home interface and Remoteinterface? with example?
What is the purpose of final keyword and when to use it?
When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?