# int

A primitive type for whole numbers within a fixed range.

## What is **int** in Java?

**int** — A primitive type for whole numbers within a fixed range.

```java
class Order {
    int itemCount = 3;
    double price = 4.50;
    char size = 'M';
    boolean paid = true;
}
```

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

Updated: September 28, 2026

## In other subjects

- [int in C#](https://www.ask-codey.com/glossary/int-c-sharp)

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