Written by the Fiveable Content Team • Last updated August 2025
Verified for the 2026 exam
Verified for the 2026 exam•Written by the Fiveable Content Team • Last updated August 2025
Definition
System.out.println is a Java statement used to display output on the console. It prints the specified message or value and adds a new line character at the end.
A variable is a named storage location in computer memory that holds a value. It can be used to store data that can be accessed and manipulated in a program.
In Java, String refers to a sequence of characters. It is used to represent textual data and is one of the most commonly used data types in programming.