162k views
2 votes
The chief disadvantage to using the ArrayList class instead of the Arrays class is that an ArrayList cannot be sorted. True False

1 Answer

4 votes

Answer:

False

Step-by-step explanation:

This is a false statement. The ArrayList class can be sorted using a variety of different Sorting Algorithms just like a simple Array. Some programming languages have built-in functions for ArrayLists that automatically sort the ArrayList. The main difference between is that a simple Array is static, meaning that it has a predefined amount of elements while an ArrayList is dynamic meaning that elements can be added and removed at will.

User Ed Chapel
by
4.2k points