# else if Statement

*noun*

say it: **“ELSE if STAYT-ment”** **/ˈɛls ɪf ˈsteɪtmənt/**

An extra condition checked after an earlier if was false, so a program can choose between several paths in order.

## What does **else if Statement** do in Java?

**else if Statement** — An additional condition tested when earlier if conditions were false.

```java
class Venue {
    boolean canEnter(int age) {
        boolean isAdult = age >= 18;
        boolean isSenior = age >= 65;

        if (isAdult && !isSenior) {
            return true;
        }

        return false;
    }
}
```

## In a sentence

- “I added an **else if** for scores from 80 to 89 so they get a B instead of falling through to C.”

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

Updated: October 26, 2026

## In other subjects

- [else if Statement in C#](https://www.ask-codey.com/glossary/else-if-statement-c-sharp)

Source: https://www.ask-codey.com/glossary/else-if-statement
