Instanceof Operator, Instanceof Operator in Java, Downcasting with Instanceof Operator - 0 views
-
mahesh 1234 on 24 Dec 13The instanceof operator is used to test whether the object is an instance of the specified type (class or subclass or interface). The instanceof operator is also known as type comparison operator because it compares the instance with type. It returns either true or false.