๐Ÿ’ปap computer science a review

Public static

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 "public static" keywords are used in Java to declare that a method or variable can be accessed and used without creating an instance of the class. "Public" means it is accessible from anywhere, and "static" means it belongs to the class itself rather than any specific instance.

"Public static" also found in: