# case Label

A possible value that a switch statement can match.

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

**case Label** — A possible value that a switch statement can match.

```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/subjects/java/apprentice)

Updated: September 27, 2026

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