How does an Array list differ from Array ?
Answers
Answered by
3
Array is a fixed length data structure while ArrayList is a variable length Collection class.You can not store primitives in ArrayList, it can only contain Objects. While Array can contain both primitives and Objects in Java.
Similar questions
India Languages,
5 months ago
Science,
5 months ago
Computer Science,
5 months ago
English,
11 months ago
Math,
1 year ago
Social Sciences,
1 year ago
Math,
1 year ago