AP Computer Science A

study guides for every class

that actually explain what's on your next test

Static keyword

from class:

AP Computer Science A

Definition

The static keyword in Java is used to declare a variable, method, or nested class as belonging to the class itself, rather than to an instance of the class. Static members are shared among all instances of a class and can be accessed without creating an object of that class.

"Static keyword" also found in:

© 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.