Can I use a primitive type literal or type variable in an instanceof expression?
instanceof
class MyClass { { boolean b1 = null insta
Basically, instanceof askes for an object as left operand. Primitive variables are not objects, so no, you can't use it that way.