Shruti, Welcome to JavaRanch! Please try to use a meaningful subject line. I see at least three threads by you with identical subject lines. This makes it hard to remember which is which. I've edited the subjects for you this time to avoid confusion. [ May 18, 2008: Message edited by: Jeanne Boyarsky ]
Now on to your question. At some point up the hierarchy, the parent class of a JSP is a servlet. It's extremely poor practice to put code in a JSP, so in a real application, I would be hard pressed to find a reason to know the name of the parent class. I would explain this to an interviewer and offer to look it up.