1.4 Constants
Introduction
A constant is a named value that cannot change after it is first assigned. Java has no dedicated `const` keyword for local values; instead, the `final` modifier marks a variable as write-once, and by convention constant names are written in SCREAMING_SNAKE_CASE.
Key Concepts
Java Syntax
Code Examples
`PI` is declared `static final`, so it is shared across the class and cannot be reassigned. Using the named constant instead of writing `3.14159` directly makes the formula self-documenting.