# Unboxing

The compiler's automatic conversion from a wrapper object to its primitive value.

## What is **Unboxing** in Java?

**Unboxing** — The compiler's automatic conversion from a wrapper object to its primitive value.

```java
class Score {
    Integer boxedScore = 7;
    int plainScore = boxedScore;
}
```

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

Updated: September 27, 2026

## In other subjects

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

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