instanceof Java Keyword

The instanceof keyword is used to determine the class of an object.

Examples

  if (node instanceof TreeNode)
  {
     <statements>
  }
  

Remarks

Related Topics

None.