๐Ÿ’ปap computer science a review

+= operator

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 += operator is known as an assignment operator. It adds the value on the right-hand side of the operator to the variable on the left-hand side and assigns the result back to that variable.

"+= operator" also found in:

+= operator Definition - AP Computer Science A Key Term | Fiveable