# List

say it: **“LIST”** **/lɪst/**

An ordered collection that allows duplicate elements and positional access.

## What is **List** in Java?

**List** — An ordered collection that allows duplicate elements and positional access.

```java
import java.util.ArrayList;
import java.util.List;

class TaskList {
    List<String> tasks = new ArrayList<>();
}
```

Level: Freelancer · [More Java terms at this level](https://www.ask-codey.com/glossary?category=java&level=4)

Updated: November 17, 2026

## In other subjects

- [List in Python](https://www.ask-codey.com/glossary/list)

Source: https://www.ask-codey.com/glossary/list-java
