Skip to content

Glossary: Java Beyond the Basics

Type inference

Also written: var

Java working out a type from the code, as with var or the diamond in new Pair<>(...), or a generic method's T from its argument.

Where the book teaches it

Related terms

Generic classDiamond operator