What is the result if this tag handler’s tag is invoked?

Click the Exhibit button.
The attribute “name” has a value of “Foo,”
What is the result if this tag handler’s tag is invoked?

Click the Exhibit button.
The attribute “name” has a value of “Foo,”
What is the result if this tag handler’s tag is invoked?

A.
Foo

B.
done

C.
Foodone

D.
An exception is thrown at runtime.

E.
No output is produced from this code.

F.
Compilation fails because of an error in this code.

Explanation:



Leave a Reply 1

Your email address will not be published. Required fields are marked *


Luis Fernando Rosero Zapata

Luis Fernando Rosero Zapata

SKIP_BODY implies doAfterBody() is not executed. Then the result is “Foo”, not “Foodone”.

doAfterBody() is called after each evaluation of the tag body and it can return either of two values: IterationTag.EVAL_BODY_AGAIN or Tag.SKIP_BODY. The return value determines whether or not the body needs to be reevaluated.