Skip to content

Glossary: System Design Beyond the Basics in Java

Assertion (assert, java -ea)

Also written: assert, java -ea

A Java statement that checks a condition, but only when the program runs with the `-ea` flag. A plain `check` helper always runs.

Where the book teaches it

Related terms

Fake clock