0

What the difference between Arraylist and list

What the difference between Arraylist and list Arraylist<String> arraylist = new Arraylist<>() list<String> list = new Arraylist<>()

3/21/2019 9:42:26 PM

Андрей Кропинов

2 Answers

New Answer

+1

ArrayList es un contenedor de una colección, mientras un list es directamente una colección.

+1

List (https://docs.oracle.com/javase/8/docs/api/java/util/List.html) is an interface while ArrayList (https://docs.oracle.com/javase/8/docs/api/java/util/ArrayList.html) is one of the possible implementations of the List interface.