Glossary Java / Term
These classes combine the process of definition and instantiation into a single step. Anonymous classes are defined at the location they are instantiated, using additional syntax with the new operator. As these classes do not have a name, an instance of the class can only be created together with the definition.
Permanent link anonymous class - Creation date 2022-01-03