Hi friends
This question from Marcus Green Mock3 question no.6
Which of the following statements are true?
1) The instanceof operator can be used to determine if a reference is an instance of a class, but not an interface.
2) The instanceof operator can be used to determine if a reference is an instance of a particular primitive wrapper class
3) The instanceof operator will only determine if a reference is an instance of a class immediately above in the hierarchy but no further up the inheritance chain
4) The instanceof operator can be used to determine if one reference is of the same class as another reference thus
The ans is 2
I think none of them , could anyone correct me?
Thanks in advance

------------------
[This message has been edited by lu v thuan (edited November 02, 2001).]