Title: Key Concept - Class variables, class methods, constants
Course: CPS 189: Java Certification - Review, Practice & Prepare (Development) > Section: Learning Modules

Class variables and class methods are declared with the static modifier. They belong to the class, rather than any instance of the class.

- Any class method or instance of the class can change the value of a class variable.
- A constant is similar to a variable but it’s value never changes.
- A constant is declared with the static and final modifiers, and receives its value at declaration.
- A variable may also be declared with the static and final modifiers, and receives its value either at declaration or during execution. It may only be assigned a value once.

For additional study, view resources under:

- Level 1 Study Materials: Unit 5