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
Which sorting algorithm is in place?
What does @param args mean in java?
How do you test a method for an exception using junit?
Difference between a class and an object?
What do bitwise operators do?
Why convert an applet to an application?
What is merge sort in java?
Difference between nested and inner classes ?
What is the SimpleTimeZone class?
Why should I use abstract class?
What is the default value of byte datatype in java?
How do you write a conditional statement?
Explain how can you debug the Java code?
What is the generic function?
Can we define package statement after import statement in java?