study guides for every class

that actually explain what's on your next test

Public static

from class:

AP Computer Science A

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:

Practice Questions (9)

© 2024 Fiveable Inc. All rights reserved.
AP® and SAT® are trademarks registered by the College Board, which is not affiliated with, and does not endorse this website.