What is difference between array & arraylist?

Arraylist is resizable where as using array it is not possible.

Questions by tulasi   answers by tulasi

Showing Answers 1 - 20 of 20 Answers

ArrayList is a part of the Collection Framework.We can store any type of objects, and we can deal with only objects.It is growable.Array is collection of similar data items.We can have array of primitives or objects.It is of fixed size,We can have multi dimensional arrays.

  Was this answer useful?  Yes

Srini

  • Nov 4th, 2005
 

arry list can be growable and also we can insert, delet, update values in any where in the array

  Was this answer useful?  Yes

sathish

  • Nov 6th, 2005
 

array: it is of fixed length,we can give only a specific data type values;arraylist:it is resizable(dynamically its size increases). It stores objects(not data type values)

  Was this answer useful?  Yes

Devidas Sonawane

  • Nov 7th, 2005
 

Array needs to define size; while ArrayList is a resizable. 

  Was this answer useful?  Yes

mandyjoshi

  • Nov 11th, 2005
 

Array: can store premitive   ArrayList: Stores object only

Array: fix size                    ArrayList: resizable

Array: can have multi dimensional

Array: lang                        ArrayList: Collection framework

  Was this answer useful?  Yes

shyamalatha

  • Nov 14th, 2005
 

in java arrays are fixed once difned it can't grow but in arraylist an elements r grow automatically.we can add some more elements to the arraylist.arraylist is synchronized and array is not synchonized.

  Was this answer useful?  Yes

Radhika

  • Nov 27th, 2005
 

ArrayList is not Synchronized. Vector is Synchornized

  Was this answer useful?  Yes

sampra

  • Feb 15th, 2008
 


ArrayList is a part of the Collection Framework.We can store any type of objects, and we can deal with only objects.It is growable.Array is collection of similar data items.We can have array of primitives or objects.It is of fixed size,We can have multi dimensional arrays.

  Was this answer useful?  Yes

rakesh

  • Nov 18th, 2015
 

Array is collection of similar data type values. We cant resizable and growable of array. It is already fixed when you declared while array list works as a dynamic in which size could be grow. It is a part of collection framework to handle or store the collection of object not any type of values.

  Was this answer useful?  Yes

Sukhrob

  • Dec 24th, 2015
 

First difference: array is already with fixed size while array lists size could be dynamically changed.

Secondly, array can include only the same type of data while array list can consist of different primitive data types as well as objects.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions