What is the difference between Array and Array List ? Explain in brief with example.
Deepak Verma
Array contain a similar data type and array size is fixed i.e dynamically its size can't be changed.but arraylist can store more then one data type and its sizecan be changed dynamically.one major difference is that,array used to store primitivedata type(i.e. int,char etc) while arraylist is used tostore objects.
Array is fixed length,array-list 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