What is the difference between array and ArrayList in Java?

Base 1: An array is a basic functionality provided by Java. ArrayList is part of the collection framework in Java. Therefore array members are accessed using [], while ArrayList has a set of methods to access elements and modify them .

Sizin İçin Seçtik  How do you declare an ArrayList?

Leave a Reply

Your email address will not be published. Required fields are marked *