๐Ÿ’ปap computer science a review

Void

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

Void is a keyword used in method declarations to indicate that the method does not return any value. It is used when a method performs an action but does not produce a result.

Pep mascot

"Void" also found in: