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)

Suggest An Answer

No suggestions avaliable!