# Type Parameter

A placeholder type declared by a generic class, interface, or method.

## What is **Type Parameter** in Java?

**Type Parameter** — A placeholder type declared by a generic class, interface, or method.

```java
import java.util.List;

class ListReader {
    static <T> T first(List<T> items) {
        return items.get(0);
    }
}
```

Level: Freelancer · [More Java terms at this level](https://www.ask-codey.com/glossary/subjects/java/freelancer)

Updated: September 27, 2026

## In other subjects

- [Type Parameter in C#](https://www.ask-codey.com/glossary/type-parameter-c-sharp)

Source: https://www.ask-codey.com/glossary/type-parameter
