How to determine what is the super class or an interface of an object
<p>say one of my object implements X interface but is returning false when checking with 'instanceof'. How to determine what is the super class or an interface of an object. I am looking for something like </p>

<p>for example:</p>

<pre><code>object.getSuperClassORInterface();
</code></pre>
