220k views
4 votes
In which of the following situations is it probably better to use a fixed-size array over another more flexible option, like Array List?

A) A situation where you want to store a collection whose size won't change.
B) A situation where you want a collection of primitive types.
C) A situation where you are specifically asked to use an Array List.
D) A situation where you don't know how many elements you'll be storing.

1 Answer

4 votes
D) a situation where you don’t know....
User Tlingf
by
6.0k points