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 super constructor?
How to optimize the javac output?
What are the differences between c++ and java?
Name few java 8 annotations ?
What is class and its types?
What is the difference between declaration and definition in java?
What are the types of web technologies?
What are some examples of variable costs?
Is assembly language a low level language?
Can we use string in switch case in java?
What occurs when an object is constructed?
how do I create a runnable with inheritance? : Java thread
Define array. Tell me about 2-D array.
What is the use of singleton?
Why strings in java are called as immutable?