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