# Javadoc Comment

A structured comment used to generate documentation for Java code.

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

**Javadoc Comment** — A structured comment used to generate documentation for Java code.

```java
class Order {
    /** Returns the number of items in the order. */
    int itemCount() {
        return 3;
    }
}
```

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/javadoc-comment
