# Assignment

Storing a value in a variable with the = operator.

## What is **Assignment** in Java?

**Assignment** — Storing a value in a variable with the = operator.

```java
class Game {
    void updateScore() {
        int score = 10;
        score = score + 5;
    }
}
```

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

Updated: September 27, 2026

## In other subjects

- [Assignment in C#](https://www.ask-codey.com/glossary/assignment-c-sharp)
- [Assignment in JavaScript](https://www.ask-codey.com/glossary/assignment-javascript)

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