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

    You are creating a web form with this HTML:

    11.

    12.

    13.

    14.

    15.

    Which HTTP method is used when sending this request from the browser?

    A. GET
    B. PUT
    C. POST
    D. SEND
    E. FORM

  • Question 12:

    Which statement is true if the doStartTag method returns EVAL_BODY_BUFFERED ?

    A. The tag handler must implement BodyTag.
    B. The doAfterBody method is NOT called.
    C. The setBodyContent method is called once.
    D. It is never legal to return EVAL_BODY_BUFFERED from doStartTag.

  • Question 13:

    In which two locations can library dependencies be defined for a web application? (Choose two.)

    A. the web application deployment descriptor
    B. the /META-INF/dependencies.xml file
    C. the /META-INF/MANIFEST.MF manifest file
    D. the /META-INF/MANIFEST.MF manifest of a JAR in the web application classpath

  • Question 14:

    Which three are described in the standard web application deployment descriptor? (Choose three.)

    A. session configuration
    B. MIME type mappings
    C. context root for the application
    D. servlet instance pool configuration
    E. web container default port bindings
    F. ServletContext initialization parameters

  • Question 15:

    Your management has required that all JSPs be created to generate XHTML-compliant content and to facilitate that decision, you are required to create all JSPs using the JSP Document format. In the reviewOrder.jspx page, you need to use several core JSTL tags to process the collection of order items in the customer's shopping cart. Which JSP code snippets must you use in the reviewOrder.jspx page?

  • Question 16:

    As a convenience feature, your web pages include an Ajax request every five minutes to a special servlet that monitors the age of the user's session. The client-side JavaScript that handles the Ajax callback displays a message on the screen as the session ages. The Ajax call does NOT pass any cookies, but it passes the session ID in a request parameter called sessionID. In addition, assume that your webapp keeps a hashmap of session objects by the ID. Here is a partial implementation of this servlet:

    10.

    public class SessionAgeServlet extends HttpServlet {

    11.

    public void service(HttpServletRequest request, HttpServletResponse) throws IOException {

    12.

    String sessionID = request.getParameter("sessionID");

    13.

    HttpSession session = getSession(sessionID);

    14.

    long age = // your code here

    15.

    response.getWriter().print(age);

    16.

    }

    ... // more code here

    47. }

    Which code snippet on line 14, will determine the age of the session?

    A. session.getMaxInactiveInterval();
    B. session.getLastAccessed().getTime() - session.getCreationTime().getTime();
    C. session.getLastAccessedTime().getTime() - session.getCreationTime().getTime();
    D. session.getLastAccessed() - session.getCreationTime();
    E. session.getMaxInactiveInterval() - session.getCreationTime();
    F. session.getLastAccessedTime() - session.getCreationTime();

  • Question 17:

    A JSP page needs to instantiate a JavaBean to be used by only that page. Which two jsp:useBean attributes must be used to access this attribute in the JSP page? (Choose two.)

    A. id
    B. type
    C. name
    D. class
    E. scope
    F. create

  • Question 18:

    Which statement is true about web container session management?

    A. Access to session-scoped attributes is guaranteed to be thread-safe by the web container.
    B. To activate URL rewriting, the developer must use the HttpServletResponse.setURLRewriting method.
    C. If the web application uses HTTPS, then the web container may use the data on the HTTPS request stream to identify the client.
    D. The JSESSIONID cookie is stored permanently on the client so that a user may return to the web application and the web container will rejoin that session.

  • Question 19:

    For an HttpServletResponse response, which two create a custom header? (Choose two.)

    A. response.setHeader("X-MyHeader", "34");
    B. response.addHeader("X-MyHeader", "34");
    C. response.setHeader(new HttpHeader("X-MyHeader", "34"));
    D. response.addHeader(new HttpHeader("X-MyHeader", "34"));
    E. response.addHeader(new ServletHeader("X-MyHeader", "34"));
    F. response.setHeader(new ServletHeader("X-MyHeader", "34"));

  • Question 20:

    You have built a web application with tight security. Several directories of your webapp are used for internal purposes and you have overridden the default servlet to send an HTTP 403 status code for any request that maps to one of these directories. During testing, the Quality Assurance director decided that they did NOT like seeing the bare response page generated by Firefox and Internet Explorer. The director recommended that the webapp should return a more user-friendly web page that has the same look-and- feel as the webapp plus links to the webapp's search engine. You have created this JSP page in the / WEB-INF/jsps/error403.jsp file. You do NOT want to alter the complex logic of the default servlet. How can you declare that the web container must send this JSP page whenever a 403 status is generated?

    A. 403/WEB-INF/jsps/error403.jsp
    B. 403/WEB-INF/jsps/error403.jsp
    C. 403/WEB- INF/jsps/error403.jsp
    D. 403/WEB- INF/jsps/error403.jsp

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.