1. Computing & Technology

Instanceof

From , former About.com Guide

Definition: The instanceof statement tests if an object is of a particular type. It evaluates to true if the object is that type and false if it is not. Instanceof is a reserved word and cannot be used for anything other than testing an object's type.
Examples:
if (myfield instanceof number)
Related Searches s type

©2012 About.com. All rights reserved.

A part of The New York Times Company.