Monday, June 11, 2001 09:16 PM
simply returns the 'Class' of the object on which it is called.
instanceof is a boolean operator. It checks if the object in question is an instance of the Type, or subclass of the Type or implements the Type interface. Thus it does much more than getClass().