Glossary: Java Beyond the Basics
Class literal
Name.class, such as IllegalArgumentException.class: an object that stands for the class itself, used by assertThrows.
Glossary: Java Beyond the Basics
Name.class, such as IllegalArgumentException.class: an object that stands for the class itself, used by assertThrows.