# System.out.println()

A method that prints a value followed by a new line.

## What does **System.out.println()** do in Java?

**System.out.println()** — A method that prints a value followed by a new line.

```java
class Greeting {
    public static void main(String[] args) {
        System.out.println("Hello, Java!"); // Hello, Java!
    }
}
```

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/system-out-println
