• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

the getParent method has a return type of jspTag

 
Joshua Antony
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
the getParent method has a return type of jspTag True or False.

In my view answer should be false because the return type of getParent of classic tag is Tag and it is not specified in the question as to which tag(simple or classic) they are referring.

The answer given is True.

Please let me know the correct answer.
 
Ashok Kumar Babu
Ranch Hand
Posts: 129
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

Return type of getParent method of Classic Tags is Tag.

Return type of getParent method of Simple Tags is JspTag.

Answer would be pretty obvious when they say in which Tag Hierarchy. But they didn't. They might have asked for Simple Tags.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic