From practice it is better to work with collections than with arrays. But specifically why it is not clear. Because collections are parameterized by objects, and not by primitives ?, so arrays can also have the type of added values, you can iterate through an array just like a collection, there are also Util classes for arrays and collections. The answer to the following questions is needed:
- What collections are better than arrays?
- What are the advantages of collections over arrays?
- When is it better to use arrays than collections?
