Skip to content

Glossary: Java Beyond the Basics

Class literal

Name.class, such as IllegalArgumentException.class: an object that stands for the class itself, used by assertThrows.

Where the book teaches it

Related terms

assertThrows