Difference between array and arraylist.
Answer Posted / vibhor
An ArrayList is resizable, where as, an array is not.
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.
Array: can store primitive ArrayList: Stores object only
Array: fix size ArrayList: resizable
Array: can have multi dimensional
Array: lang ArrayList: Collection
framework
| Is This Answer Correct ? | 98 Yes | 19 No |
Post New Answer View All Answers
What is an example of a conditional statement?
What is an arraylist in java?
What is the main use of generics in java?
Why parsing is done?
Explain different types of thread priorities ?
How many types of variables are there?
What is the biggest integer?
What is the format specifier?
Is array a class in java?
How does regex work?
How many types of parsers are there?
What is independent and dependent variables in research?
Is zero a positive integer?
What is difference between call by value and call by reference?
Differece between class and generic class?