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 101:

    Given a web application in which the cookie userName is expected to contain the name of the user. Which EL expression evaluates to that user name?

    A. ${userName}
    B. ${cookie.userName}
    C. ${cookie.user.name}
    D. ${cookies.userName[0]}
    E. ${cookies.userName}[1]
    F. ${cookies.get('userName')}

  • Question 102:

    Which ensures that a JSP response is of type "text/plain"?

  • Question 103:

    You are writing a JSP that includes scriptlet code to declare a List variable and initializes that variable to an ArrayList object. Which two JSP code snippets can you use to import these list types? (Choose two.)

  • Question 104:

    You have created a JSP that includes instance variables and a great deal of scriptlet code. Unfortunately, after extensive load testing, you have discovered several race conditions in your JSP scriptlet code. To fix these problems would require significant recoding, but you are already behind schedule. Which JSP code snippet can you use to resolve these concurrency problems?

  • Question 105:

    Squeaky Beans Inc. hired an outside consultant to develop their web application. To finish the job quickly, the consultant created several dozen JSP pages that directly communicate with the database. The Squeaky business team has since purchased a set of business objects to model their system, and the Squeaky developer charged with maintaining the web application must now refactor all the JSPs to work with the new system. Which pattern can the developer use to solve this problem?

    A. Transfer Object
    B. Service Locator
    C. Intercepting Filter
    D. Business Delegate

  • Question 106:

    Given a header in an HTTP request:

    X-Retries: 4

    Which two retrieve the value of the header from a given HttpServletRequest request? (Choose two.)

    A. request.getHeader("X-Retries")
    B. request.getIntHeader("X-Retries")
    C. request.getRequestHeader("X-Retries")
    D. request.getHeaders("X-Retries").get(0)
    E. request.getRequestHeaders("X-Retries").get(0)

  • Question 107:

    Your company has a corporate policy that prohibits storing a customer's credit card number in any corporate database. However, users have complained that they do NOT want to re-enter their credit card number for each transaction. Your management has decided to use client-side cookies to record the user's credit card number for 120 days. Furthermore, they also want to protect this information during transit from the web browser to the web container; so the cookie must only be transmitted over HTTPS.

    Which code snippet creates the "creditCard" cookie and adds it to the out going response to be stored on the user's web browser?

    A. 10. Cookie c = new Cookie("creditCard", usersCard);11. c.setSecure(true);12.
    B. setAge(10368000);13. response.addCookie(c);
    C. 10. Cookie c = new Cookie("creditCard", usersCard);11. c.setHttps(true);12.
    D. setMaxAge(10368000);13. response.setCookie(c);
    E. 10. Cookie c = new Cookie("creditCard", usersCard);11. c.setSecure(true);12.
    F. setMaxAge(10368000);13. response.addCookie(c);
    G. 10. Cookie c = new Cookie("creditCard", usersCard);11. c.setHttps(true);12.
    H. setAge(10368000);13. response.addCookie(c);
    I. 10. Cookie c = new Cookie("creditCard", usersCard);11. c.setSecure(true);12.
    J. setAge(10368000);13. response.setCookie(c);

  • Question 108:

    Given:

    String value = getServletContext().getInitParameter("foo");

    in an HttpServlet and a web application deployment descriptor that contains:

    foo frodo

    Which two are true? (Choose two.)

    A. The foo initialization parameter CANNOT be set programmatically.
    B. Compilation fails because getInitParameter returns type Object.
    C. The foo initialization parameter is NOT a servlet initialization parameter.
    D. Compilation fails because ServletContext does NOT have a getInitParameter method.
    E. The foo parameter must be defined within the element of the deployment descriptor.
    F. The foo initialization parameter can also be retrieved using getServletConfig().getInitParameter("foo").

  • Question 109:

    A developer is designing a multi-tier web application and discovers a need to log each incoming client request. Which two patterns, taken independently, provide a solution for this problem? (Choose two.)

    A. Transfer Object
    B. Service Locator
    C. Front Controller
    D. Intercepting Filter
    E. Business Delegate
    F. Model-View-Controller

  • Question 110:

    Which three are true about the HttpServletRequestWrapper class? (Choose three.)

    A. The HttpServletRequestWrapper is an example of the Decorator pattern.
    B. The HttpServletRequestWrapper can be used to extend the functionality of a servlet request.
    C. A subclass of HttpServletRequestWrapper CANNOT modify the behavior of the getReader method.
    D. An HttpServletRequestWrapper may be used only by a class implementing the javax.servlet.Filter interface.
    E. An HttpServletRequestWrapper CANNOT be used on the request passed to the RequestDispatcher.include method.
    F. An HttpServletRequestWrapper may modify the header of a request within an object implementing the javax.servlet.Filter interface.

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.