310-083  Exam

Exam # of questions Description  Update
310-083 230 Sun Certified Web Component Developer for J2EE 5... 02/15/2011
[Practice Test]    [Download Study Guide(PDF)]   [Update Exam]

310-083 - Exam Information
  • Description: Sun Certified Web Component Developer for J2EE 5
  • Passing Score: 0%
  • Practice Test - Number of questions: 230 questions
  • Simulation Test - Number of questions: 230 questions
  • Simulation Test Duration: 120 minutes
  • Has explanations: No

Question of the day

The sl:shoppingList and sl:item tags output a shopping list to the response and are used as follows: 11. 12. 13. 14. 15. The tag handler for sl:shoppingList is ShoppingListTag and the tag handler for sl:item is ItemSimpleTag. ShoppingListTag extends BodyTagSupport and ItemSimpleTag extends SimpleTagSupport. Which is true?

Answer(s)

  1. ItemSimpleTag can find the enclosing instance of ShoppingListTag by calling getParent() andcasting the result to ShoppingListTag.
  2. ShoppingListTag can find the child instances of ItemSimpleTag by calling super.getChildren()and casting each to an ItemSimpleTag.
  3. It is impossible for ItemSimpleTag and ShoppingListTag to find each other in a tag hierarchybecause one is a Simple tag and the other is a Classic tag.
  4. ShoppingListTag can find the child instances of ItemSimpleTag by calling getChildren() onthe PageContext and casting each to an ItemSimpleTag.
  5. ItemSimpleTag can find the enclosing instance of ShoppingListTag by callingfindAncestorWithClass() on the PageContext and casting the result to ShoppingListTag.
Correct Answer

ItemSimpleTag can find the enclosing instance of ShoppingListTag by calling getParent() andcasting the result to ShoppingListTag.