# Comment

*noun*

say it: **“KOM-ent”** **/ˈkɑmɛnt/**

Notes written in code for the people who read it; Java ignores them when it runs the program.

## What is **Comment** in Java?

**Comment** — Text for people reading the code that the compiler ignores.

```java
class GuestList {
    // The venue has four reserved seats.
    int reservedSeats = 4;
}
```

## In a sentence

- “I left a **comment** above the formula explaining why we round the tax down.”

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

- [Comment in C#](https://www.ask-codey.com/glossary/comment-c-sharp)
- [Comment in CSS](https://www.ask-codey.com/glossary/comment-software-development)
- [Comment in JavaScript](https://www.ask-codey.com/glossary/comment-javascript)
- [Comment in PowerShell](https://www.ask-codey.com/glossary/comment-powershell)
- [Comment in Python](https://www.ask-codey.com/glossary/comment)
- [Comment in Unix](https://www.ask-codey.com/glossary/comment-unix)

Source: https://www.ask-codey.com/glossary/comment-java
