# final

A modifier that prevents reassignment, overriding, or inheritance depending on where it is used.

## What does **final** do in Java?

**final** — A modifier that prevents reassignment, overriding, or inheritance depending on where it is used.

```java
class Store {
    static int locationCount = 3;
    final String name;

    Store(String name) {
        this.name = name;
    }
}
```

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

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/final
