Exam Details

  • Exam Code
    :1Z0-858
  • Exam Name
    :Java Enterprise Edition 5 Web Component Developer Certified Professional
  • Certification
    :Oracle Certifications
  • Vendor
    :Oracle
  • Total Questions
    :276 Q&As
  • Last Updated
    :Mar 23, 2025

Oracle Oracle Certifications 1Z0-858 Questions & Answers

  • Question 21:

    Given tutorial.jsp:

    2.

    EL Tutorial

    3.

    Example 1

    4.

    5.

    Dear ${my:nickname(user)}

    6.

    Which, when added to the web application deployment descriptor, ensures that line 5 is included verbatim in the JSP output?

    A. *.jsptrue

    B. *.jsptrue

    C. *.jsp

    D. *.jsptrue

    E. *.jsptrue

  • Question 22:

    Which two are true about the JSTL core iteration custom tags? (Choose two.)

    A. It may iterate over arrays, collections, maps, and strings.

    B. The body of the tag may contain EL code, but not scripting code.

    C. When looping over collections, a loop status object may be used in the tag body.

    D. It may iterate over a map, but only the key of the mapping may be used in the tag body.

    E. When looping over integers (for example begin='1' end='10'), a loop status object may not be used in the tag body.

  • Question 23:

    Which two are valid and equivalent? (Choose two.)

    A. <%! int i; %>

    B. <%= int i; %>

    C. int i;

    D. int i;

    E. int i;

  • Question 24:

    The JSP developer wants a comment to be visible in the final output to the browser. Which comment style needs to be used in a JSP page?

    A.

    B. <% // this is a comment %>

    C. <%-- this is a comment --%>

    D. <% /** this is a comment **/ %>

  • Question 25:

    You need to store a Java long primitive attribute, called customerOID, into the session scope. Which two code snippets allow you to insert this value into the session? (Choose two.)

    A. long customerOID = 47L;session.setAttribute("customerOID", new Long(customerOID));

    B. long customerOID = 47L;session.setLongAttribute("customerOID", new Long(customerOID));

    C. long customerOID = 47L;session.setAttribute("customerOID", customerOID);

    D. long customerOID = 47L;session.setNumericAttribute("customerOID", new Long(customerOID));

    E. long customerOID = 47L;session.setLongAttribute("customerOID", customerOID);

    F. long customerOID = 47L;session.setNumericAttribute("customerOID", customerOID);

  • Question 26:

    Click the Exhibit button.

    Assuming the tag library in the exhibit is imported with the prefix forum, which custom tag invocation produces a translation error in a JSP page?

    A.

    B. My message body.

    C. ${param.body}

    D. <%= request.getParameter( "body" ) %>

    E. ">My message body.

  • Question 27:

    Given in a single JSP page:

    <%@ taglib prefix='java' uri='myTags' %> <%@ taglib prefix='JAVA' uri='moreTags' %>

    Which two are true? (Choose two.)

    A. The prefix 'java' is reserved.

    B. The URI 'myTags' must be properly mapped to a TLD file by the web container.

    C. A translation error occurs because the prefix is considered identical by the web container.

    D. For the tag usage , the tag1 must be unique in the union of tag names in 'myTags' and 'moreTags'.

  • Question 28:

    In a JSP-centric shopping cart application, you need to move a client's home address of the Customer object into the shipping address of the Order object. The address data is stored in a value object class called Address with properties for: street address, city, province, country, and postal code. Which two JSP code snippets can be used to accomplish this goal? (Choose two.)

    A.

    B.

    C.

    D.

    E.

    F.

  • Question 29:

    Given that a scoped attribute cart exists only in a user's session, which two, taken independently, ensure the scoped attribute cart no longer exists? (Choose two.)

    A. ${cart = null}

    B.

    C.

    D.

    E. cart

    F.

    G. ${cart}

  • Question 30:

    In which three directories, relative to a web application's root, may a tag library descriptor file reside when deployed directly into a web application? (Choose three.)

    A. /WEB-INF

    B. /META-INF

    C. /WEB-INF/tlds

    D. /META-INF/tlds

    E. /WEB-INF/resources

    F. /META-INF/resources

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Oracle exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 1Z0-858 exam preparations and Oracle certification application, do not hesitate to visit our Vcedump.com to find your solutions here.