# Increment Operator

The ++ operator, which adds one to a numeric variable.

## What does **Increment Operator** do in Java?

**Increment Operator** — The ++ operator, which adds one to a numeric variable.

```java
class Bakery {
    void divideCookies() {
        int cookies = 10;
        cookies++;
        int cookiesPerGuest = cookies / 2;
    }
}
```

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

Updated: September 27, 2026

## In other subjects

- [Increment Operator in C#](https://www.ask-codey.com/glossary/increment-operator-c-sharp)

Source: https://www.ask-codey.com/glossary/increment-operator
