# default Label

say it: **“dih-FAWLT LAY-bul”** **/dɪˈfɔlt ˈleɪbəl/**

The switch path used when no case matches.

## What is **default Label** in Java?

**default Label** — The switch path used when no case matches.

```java
class Shirt {
    String sizeName(String size) {
        return switch (size) {
            case "M" -> "Medium";
            default -> "Other";
        };
    }
}
```

Level: Apprentice · [More Java terms at this level](https://www.ask-codey.com/glossary?category=java&level=2)

Updated: November 17, 2026

Source: https://www.ask-codey.com/glossary/default-label
