💻ap computer science a review

Escape characters

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

Definition

Escape characters are special characters that are used to represent certain actions or non-printable characters within a string. They are preceded by a backslash (\) and allow you to include characters like quotes, newlines, or tabs in your strings.

"Escape characters" also found in:

2,589 studying →