# Serialization

Converting an object's state into data that can be stored or transferred.

## What is **Serialization** in Java?

**Serialization** — Converting an object's state into data that can be stored or transferred.

```java
import java.io.Serializable;

class Session implements Serializable {
    String user = "Ada";
    transient String token = "secret";
}
```

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

Updated: September 27, 2026

## In other subjects

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

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