⌨️ap computer science principles review

Substring

Written by the Fiveable Content Team • Last updated September 2025
Verified for the 2026 exam
Verified for the 2026 examWritten by the Fiveable Content Team • Last updated September 2025

Definition

A substring is a smaller portion of a larger string extracted based on its starting and ending positions within that string.