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
List the features of java programming language.
How do you declare an empty string?
What is string immutability?
Are private methods final?
What is method reference in java?
What is an image buffer?
I want to control database connections in my program and want that only one thread should be able to make database connection at a time. How can I implement this logic?
What is number data type in java?
What are extraneous variables examples?
Can a static method be overridden in java?
What do you mean by singleton class in java?
What is a numeric digit?
What data structures are used to perform recursion?
What does @override mean?
What is the purpose of garbage collection in java, and when is it used?