Skip to content

Glossary: Java Basics

Constant

Also written: constants, final

A value that must never change, declared with `final` and named in capitals with underscores, like `OUNCES_PER_BAG`. On a field, `final` means it is set once and never pointed at another object.

Where the book teaches it

Related terms

Variablevar