๐Ÿ’ปap computer science a review

Public 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

"public" is an access modifier that allows the method to be accessed from anywhere in the program. "void" is a keyword indicating that the method does not return any value.

"Public void" also found in: