What is instanceOf operator used in Java?
instanceof operator is used in object reference variables. In this, the operator will check the class type or interface type of an object.
It is written as follows:
( Object reference variable ) instanceof (class/interface type)
BY Best Interview Question ON 13 Jan 2019