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 are void pointers?
why java does not support unsigned keyword?
What is private public protected in java?
What is field name?
Describe the various concepts related to object oriented programming (oop).
What are different data structures in java?
What is static import?
State some advantages of java?
what is the difference between future and callable interface in java?
What is java object name?
Which class contains a method: cloneable or object?
How do you test a method for an exception using junit?
What is a key in java?
Why is string builder not thread safe?
Name few java util classes introduced with java 8 ?