interface MyInterface { }
class Bar implements MyInterface{ }
class Foo extends Bar { }
First Operand instanceof Operand Result
null Any class or interface type false
Foo instance Foo, Bar, MyInterface, Object true
Bar instance Bar, MyInterface, Object true
Bar instance Foo false
Foo [ ] Foo, Bar, MyInterface false
Foo [ ] Object true
Foo [ 1 ] Foo, Bar, MyInterface, Object true