# Text Block

A multiline string literal enclosed by three double quotes.

## What is **Text Block** in Java?

**Text Block** — A multiline string literal enclosed by three double quotes.

```java
class Menu {
    String text = """
            Tea
            Coffee
            """;
}
```

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

Updated: September 27, 2026

Source: https://www.ask-codey.com/glossary/text-block
