What is a Instanceof?

instanceof is a binary operator used to test if an object is of a given type . The result of the operation is either true or false. It’s also known as type comparison operator because it compares the instance with type. Before casting an unknown object, the instanceof check should always be used.

Read more

What is Instanceof a class?

The java instanceof operator is used to test whether the object is an instance of the specified type (class or subclass or interface) . The instanceof in java is also known as type comparison operator because it compares the instance with type. It returns either true or false.

Read more