Skip to content

Glossary: System Design Basics in Java

assert

Also written: -ea, enable assertions, AssertionError

A Java statement that does nothing when its condition is true and throws an AssertionError when false, but only if you run the program with `java -ea`.

Where the book teaches it

Related terms

Clock (injectable / fake clock)