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
How do I get a substring?
Why is java so popular?
What do you mean by global variable?
Why do we need singleton class?
What is the purpose class.forname method?
How many types of design patterns are there?
What is stream api in java8?
What is composition in java?
What is off heap memory?
what happens when a thread cannot acquire a lock on an object? : Java thread
why are wait(), notify() and notifyall() methods defined in the object class? : Java thread
What is lambda expression in java?
How do we access static members in java?
what is meant by Byte code concept in Java?
Is a class an object?