Tag Archive: java operator

Apr
20

The instanceof Operator in Java

The instanceof operator determines if a given object is of the type of a specific class. To be more specific, the instanceof operator tests whether its first operand is an instance of its second operand. The test is made at runtime. The first operand is supposed to be the name of an object or an …

Continue reading »

Permanent link to this article: http://www.javaplex.com/blog/the-instanceof-operator-in-java/