Created: 2023-09-03 20:36
Status: #concept
Subject: Programming
Tags: Java java.util java.util.ArrayList java.util.Collection

java.util.List

It has the same methods as ArrayList, but it is statically-sized.

  • it is the Java Interface for many subclasses including ArrayList.
  • interface List<E>

List<String> strings = new ArrayList<>();
strings.add("string objects inside an arraylist object!");
All Known Implementing Classes:

ArrayList vs LinkedList

References