The java “instanceof” operator is used to test whether the object is an instance of the specified type (class or subclass or interface). It is also known as type comparison operator because it compares the instance with type. It returns either true or false.
Read moreWhat is type () in Java?
Type is the common superinterface for all types in the Java programming language . These include raw types, parameterized types, array types, type variables and primitive types. Since: 1.5.
Read more