HFSJ 2nd edition question 3. Question: There is a tag definition with two attributes "userId" and "size". userId is declared as mandatory [required=true] size is declared as optional attribute.
Since size is optional attribute the tag handler class need not have setter method and size member variable. Is this statement correct?
This statement is incorrect. The userId attribute is optional, but when you do specify this attribute and its value in the tag, it requires the setter method in the tag handler class to set the value for this attribute.