The java instanceof operator is a object reference operator that returns a boolean value either true or false. If the reference is the instance of specified type, it returns true otherwise it returns false. Java instanceof operator is also known as type comparision operator because it compares the reference with specified type. Java instanceof operator can be used to check the runtime information of an object. This operator is very useful in the case of typecasting of an object. Example of Java instanceof Operator. Java instanceof operator - What happens when a reference has null value? Downcasting with java instanceof operator. Another Example of Java instanceof Operator.
















