Files

8 lines
623 B
Markdown
Raw Permalink Normal View History

2025-03-05 14:06:58 +00:00
# Array vs ArrayList
Arrays and ArrayLists are both ways to store collections of elements in Java. An array is a fixed-size, ordered sequence of elements of the same data type. Once you declare its size, you cannot change it. An ArrayList, on the other hand, is a dynamic, resizable array implementation. It can grow or shrink as needed, allowing you to add or remove elements without worrying about the initial size.
Visit the following resources to learn more:
- [@article@Java Arrays](https://jenkov.com/tutorials/java/arrays.html)
2025-11-24 17:20:43 +01:00
- [@article@Java ArrayLists](https://jenkov.com/tutorials/java-collections/list.html)