This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi Friends, Please help me in the following question
Consider the following description of a tag in a TLD:
<tag> <name>SmilyTag</name> <tag-class>com.enthuware.ctags.SmilyTag</tag-class> <description> Replaces emoticons such as , , and with images. </description> <body-content>tagdependent</body-content> <attribute> <name>name</name> <required>false</required> <rtexprvalue>true</rtexprvalue> </attribute> </tag>
Which of the following statements regarding the above tag are correct?
Select 2 correct options.
1) It is an empty tag.
2) It may be used as an empty tag.
3) It must have a body.
4) It must implement BodyTag interface.
5) It may take an attribute named 'name'. But if present, its value must be dynamic.
According to me only option 2) is correct, but the mock exam says that options 2)n 4) are correct and the explanation for option 4) it gives is: Since the body-content is tagdependent, it must implement the BodyTag interface.
I dont know any such relation between body-content and BodyTag.... Anyone please correct me if i am wrong.