# Single-Line Comment

A comment beginning with // and continuing to the end of the line.

## What is **Single-Line Comment** in Java?

**Single-Line Comment** — A comment beginning with // and continuing to the end of the line.

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

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

Updated: September 27, 2026

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