nerdexam
Oracle

1Z0-899 · Question #174

View the Exhibit. Assume the product attribute does NOT yet exist in any scope. Which two create an instance of com.example.Product and initialize the name and price properties to the name and price…

The correct answer is A. <jsp:useBean id="product" class="com.example.Product" /> C. <jsp:useBean id="product" class="com.example.Product" />. See the full explanation below for the reasoning.

Question

View the Exhibit. Assume the product attribute does NOT yet exist in any scope. Which two create an instance of com.example.Product and initialize the name and price properties to the name and price request parameters? (Choose two)

Exhibit

1Z0-899 question #174 exhibit

Options

  • A<jsp:useBean id="product" class="com.example.Product" />
  • B<jsp:useBean id="product" class="com.example.Product" />
  • C<jsp:useBean id="product" class="com.example.Product" />
  • D<jsp:useBean id="product" class="com.example.Product">

How the community answered

(25 responses)
  • A
    76% (19)
  • B
    8% (2)
  • D
    16% (4)

Community Discussion

No community discussion yet for this question.

Full 1Z0-899 Practice