identifying sub-class at run time
<p>I want to know how to identify subclasses at run time in java. In my program I am calling a method that returns a superclass object. The object can be an instance of any one of its sub-classes. I want to know the object is instance of which sub-class at run-time so that I can cast it to that subclass and access subclass methods. Can anyone help me in this?</p>

<p>Thanks</p>
