1Z0-858 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
    :Jul 12, 2026

Oracle 1Z0-858 Online Questions & Answers

  • Question 191:

    Within the web application deployment descriptor, which defines a valid JNDI environment entry?

    A. java.lang.Booleantrue
    B. param/MyExampleStringThis is an Example
    C. param/MyExampleStringint10
    D. param/MyExampleStringjava.lang.StringThis is an Example

  • Question 192:

    A web application allows the HTML title banner to be set using a servlet context initialization parameter called titleStr. Which two properly set the title in this scenario? (Choose two.)

    A. ${titleStr}
    B. ${initParam.titleStr}
    C. ${params[0].titleStr}
    D. ${paramValues.titleStr}
    E. ${initParam['titleStr']}
    F. ${servletParams.titleStr}
    G. ${request.get("titleStr")}

  • Question 193:

    You are building a dating web site. The client's date of birth is collected along with lots of other information. You have created an EL function with the signature: calcAge(java.util.Date):int and it is assigned to the name, age, in the namespace, funct. In one of your JSPs you need to print a special message to clients who are younger than 25. Which EL code snippet will return true for this condition?

    A. ${calcAge(client.birthDate) < 25}
    B. ${calcAge[client.birthDate] < 25}
    C. ${funct:age(client.birthDate) < 25}
    D. ${funct:age[client.birthDate] < 25}
    E. ${funct:calcAge(client.birthDate) < 25}
    F. ${funct:calcAge[client.birthDate] < 25}

  • Question 194:

    Given an HttpServletRequest request and HttpServletResponse response, which sets a cookie "username" with the value "joe" in a servlet?

    A. request.addCookie("username", "joe")
    B. request.setCookie("username", "joe")
    C. response.addCookie("username", "joe")
    D. request.addHeader(new Cookie("username", "joe"))
    E. request.addCookie(new Cookie("username", "joe"))
    F. response.addCookie(new Cookie("username", "joe"))
    G. response.addHeader(new Cookie("username", "joe"))

  • Question 195:

    Click the Exhibit button.

    A session-scoped attribute, product, is stored by a servlet. That servlet then forwards to a JSP page. This attribute holds an instance of the com.example.Product class with a name property of "The Matrix" and price property of 39.95.

    Given the JSP page code snippet:

    1.

    2.

    3.

    4.

    <%= product.getName() %> costs <%= product.getPrice() %> What is the response output of this JSP page code snippet?

    A. Default costs 0.0
    B. Default costs 49.95
    C. Default costs 39.95
    D. The Matrix costs 0.0
    E. The Matrix costs 49.95
    F. The Matrix costs 39.95

  • Question 196:

    A developer for the company web site has been told that users may turn off cookie support in their browsers. What must the developer do to ensure that these customers can still use the web application?

    A. The developer must ensure that every URL is properly encoded using the appropriate URL rewriting APIs.
    B. The developer must provide an alternate mechanism for managing sessions and abandon the HttpSession mechanism entirely.
    C. The developer can ignore this issue. Web containers are required to support automatic URL rewriting when cookies are not supported.
    D. The developer must add the string ?id= to the end of every URL to ensure that the conversation with the browser can continue.

  • Question 197:

    Select and Place:

  • Question 198:

    Given a JSP page:

    11.

    12.

    13.

    14.

    15.

    16.

    17.

    The tag handler for n:recurse extends SimpleTagSupport.

    Assuming an n:recurse tag can either contain an empty body or another n:recurse tag, which strategy allows the tag handler for n:recurse to output the nesting depth of the deepest n:recurse tag?

    A. It is impossible to determine the deepest nesting depth because it is impossible for tag handlers that extend SimpleTagSupport to communicate with their parent and child tags.
    B. Create a private non-static attribute in the tag handler class called count of type int initialized to 0. Increment count in the doTag method. If the tag has a body, invoke the fragment for that body. Otherwise, output the value of count.
    C. Start a counter at 1. Call getChildTags(). If it returns null, output the value of the counter. Otherwise, increment counter and continue from where getChildTags() is called. Skip processing of the body.
    D. If the tag has a body, invoke the fragment for that body.Otherwise, start a counter at 1. Call getParent (). If it returns null, output the value of the counter Otherwise, increment the counter and continue from where getParent() is called.

  • Question 199:

    A developer is designing a web application that makes many fine-grained remote data requests for each client request. During testing, the developer discovers that the volume of remote requests significantly degrades performance of the application. Which design pattern provides a solution for this problem?

    A. Flyweight
    B. Transfer Object
    C. Service Locator
    D. Dispatcher View
    E. Business Delegate
    F. Model-View-Controller

  • Question 200:

    You are creating a new JSP page and you need to execute some code that acts when the page is first executed, but only once. Which three are possible mechanisms for performing this initialization code? (Choose three.)

    A. In the init method.
    B. In the jspInit method.
    C. In the constructor of the JSP's Java code.
    D. In a JSP declaration, which includes an initializer block.
    E. In a JSP declaration, which includes a static initializer block.

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.