• Post Reply Bookmark Topic Watch Topic
  • New Topic

SIMPLE DOUBT FROM MOCK EXAM

 
Sangeetha Selvaraj
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
From which interface(s) do you need to implement the methods if you want to create an iterative tag without body content? [Check all correct answers]
1. Tag
2. LoopTag
3. IterationTag
4. TagSupport
5. BodyTag

the site says the answer is 1,3.

the tag interface doesnt have the doAfterBody() , i think 3&4 is right but he has asked only for interfaces. whats the right solution.

Thanks
Sangeetha
 
Raju Sri
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI Sangeetha,

I can say that only 3 is the correct answer as the question asked about interface.

Cheers
 
Sangeetha Selvaraj
Greenhorn
Posts: 17
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks, I thought the same too
 
Tiago Flach
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
But...

Do you agree that IterationTag extends Tag and, therefore, you'll also have to implement Tag methods?

So, IMHO, I think answers 1 and 3 are right.
[ August 13, 2004: Message edited by: Tiago Flach ]
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!