posted 24 years ago
I guess what it really says is that you cannot do something as follows:
<pre>
String s = new String("some string");
Class clazz = s.getClass();
if (s instanceof clazz) {} // incorrect!
if (s instanceof "String.class") {} //incorrect!
</pre>
regards,
VG.
[This message has been edited by Vlad G (edited January 02, 2001).]