If you want to verify at runtime whether an object is an instance of a particular class, you can use the instanceof keyword to do so.
But, you can't use the instanceof keyword on an instance of the class of its subclasses or else, you'll receive a compile error. You can only use the instanceof keyword on superclasses.