Skip to content

Glossary: Java Beyond the Basics

Diamond operator

Also written: <>, diamond

The empty angle brackets in new Counter<>() that tell Java to copy the type arguments from the left side.

Where the book teaches it

Related terms

Type inferenceGeneric class