# String Immutability

The rule that a String's character sequence cannot change after the object is created.

## What is **String Immutability** in Java?

**String Immutability** — The rule that a String's character sequence cannot change after the object is created.

```java
class StatusLabel {
    String status = "open";
    String uppercaseStatus = status.toUpperCase();
}
```

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

Updated: September 27, 2026

## In other subjects

- [String Immutability in C#](https://www.ask-codey.com/glossary/string-immutability-c-sharp)

Source: https://www.ask-codey.com/glossary/string-immutability
