Written by the Fiveable Content Team โข Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examโขWritten by the Fiveable Content Team โข Last updated September 2025
Definition
The String class is a built-in class in Java that represents a sequence of characters. It provides various methods to manipulate and work with strings.
Related terms
substring: A substring is a smaller part of a larger string. It refers to extracting a portion of characters from a string.
length: The length is the number of characters in a string. It helps determine the size or amount of content within the string.
concatenation: Concatenation is combining two or more strings together to create one longer string.