Skip to content

Glossary: Java Beyond the Basics

instanceof

Tests an object's type, and in p instanceof Cash cash also gives you the object as that type.

Where the book teaches it

Related terms

Pattern matching