posted 17 years ago
Hi
instanceof checks if one reference to a class (an object of ClassA) is of the same type as another class (ClassB) or one of its decendant classes.
The comparison is always between an object on the left and a class on the right, and since null is not a class or an object it makes sense that you get false.
Chris