# Race Condition

A bug where a result depends on unpredictable timing between threads.

## What is **Race Condition** in Java?

**Race Condition** — A bug where a result depends on unpredictable timing between threads.

```java
class Counter {
    int value;

    void increment() {
        value++;
    }
}
```

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

Updated: September 27, 2026

## In other subjects

- [Race Condition in C#](https://www.ask-codey.com/glossary/race-condition-c-sharp)

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