DEVFYI - Developer Resource - FYI

What are the legal operands of the instanceof operator?

Java Interview Questions and Answers (part 2)


(Continued from previous question...)

312. What are the legal operands of the instanceof operator?

The left operand is an object reference or null value and the right operand is a class, interface, or array type.

(Continued on next question...)

Other Interview Questions