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
How the metacharacters are different from the ordinary characters?
What are constants and how to create constants in java?
How can you set the applet size?
Can we use a switch statement with strings?
When does a class need a virtual destructor?
What is the difference between abstraction and encapsulation?
Write a factorial program using recursion in java?
What is the purpose of methodology?
What is the syntax and characteristics of a lambda expression?
What are the principle concepts of oops?
What is the difference between error and an exception?
Name few java.lang classes introduced with java 8 ?
Define the term string pool?
How to run a JAR file through command prompt?
What is the difference between menuitem and checkboxmenu item?