Is ArrayList same as list Java?

List interface is used to create a list of elements(objects) that are associated with their index numbers. ArrayList class is used to create a dynamic array that contains objects . List interface creates a collection of elements that are stored in a sequence and they are identified and accessed using the index.

Sizin İçin Seçtik  Can you have a list of objects in Java?

Leave a Reply

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