The instanceof keyword is used to determine the class of an object.
if (node instanceof TreeNode)
{
<statements>
}
In the example above, if node is an instance of the TreeNode class or is an instance of a subclass of TreeNode, the instanceof expression evaluates to true.
None.