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

    Your web application requires the ability to load and remove web files dynamically to the web container's file system. Which two HTTP methods are used to perform these actions? (Choose two.)

    A. PUT
    B. POST
    C. SEND
    D. DELETE
    E. REMOVE
    F. DESTROY

  • Question 142:

    The Squeaky Bean company has decided to port their web application to a new J2EE 1.4 container. While reviewing the application, a developer realizes that in multiple places within the current application, nearly duplicate code exists that finds enterprise beans. Which pattern should be used to eliminate this duplicate code?

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

  • Question 143:

    You want to create a valid directory structure for your Java EE web application, and your application uses tag files and a JAR file. Which three must be located directly in your WEB-INF directory (NOT in a subdirectory of WEB-INF)? (Choose three.)

    A. The JAR file
    B. A directory called lib
    C. A directory called tags
    D. A directory called TLDs
    E. A directory called classes
    F. A directory called META-INF

  • Question 144:

    Given a web application in which the request parameter productID contains a product identifier. Which two EL expressions evaluate the value of the productID? (Choose two.)

    A. ${productID}
    B. ${param.productID}
    C. ${params.productID}
    D. ${params.productID[1]}
    E. ${paramValues.productID}
    F. ${paramValues.productID[0]}
    G. ${pageContext.request.productID}

  • Question 145:

    In a JSP-centric web application, you need to create a catalog browsing JSP page. The catalog is stored as a List object in the catalog attribute of the webapp's ServletContext object. Which scriptlet code snippet gives you access to the catalog object?

  • Question 146:

    You have a new IT manager that has mandated that all JSPs must be refactored to include no scritplet code. The IT manager has asked you to enforce this. Which deployment descriptor element will satisfy this constraint?

    A. *.jspfalse
    B. *.jspfalse
    C. *.jsptrue
    D. *.jsptrue

  • Question 147:

    Which two are required elements for the element of a web application deployment descriptor? (Choose two.)

  • Question 148:

    You want to create a filter for your web application and your filter will implement javax.servlet.Filter. Which two statements are true? (Choose two.)

    A. Your filter class must implement an init method and a destroy method.
    B. Your filter class must also implement javax.servlet.FilterChain.
    C. When your filter chains to the next filter, it should pass the same arguments it received in its doFilter method.
    D. The method that your filter invokes on the object it received that implements javax.servlet.FilterChain can invoke either another filter or a servlet.
    E. Your filter class must implement a doFilter method that takes, among other things, an HTTPServletRequest object and an HTTPServletResponse object.

  • Question 149:

    Assume a JavaBean com.example.GradedTestBean exists and has two attributes. The attribute name is of type java.lang.String and the attribute score is of type java.lang.Integer.

    An array of com.example.GradedTestBean objects is exposed to the page in a request-scoped attribute called results. Additionally, an empty java.util.HashMap called resultMap is placed in the page scope.

    A JSP page needs to add the first entry in results to resultMap, storing the name attribute of the bean as the key and the score attribute of the bean as the value.

    Which code snippet of JSTL code satisfies this requirement?

    A. ${resultMap[results[0].name] = results[0].score}
    C. ${results[0].value}

  • Question 150:

    Given the definition of MyServlet:

    11.

    public class MyServlet extends HttpServlet {

    12.

    public void service(HttpServletRequest request,

    13.

    HttpServletResponse response)

    14.

    throws ServletException, IOException {

    15.

    HttpSession session = request.getSession(); 16 session.setAttribute("myAttribute","myAttributeValue");

    17.

    session.invalidate();

    18.

    response.getWriter().println("value=" +

    19.

    session.getAttribute("myAttribute"));

    20.

    }

    21.

    }

    What is the result when a request is sent to MyServlet?

    A. An IllegalStateException is thrown at runtime.
    B. An InvalidSessionException is thrown at runtime.
    C. The string "value=null" appears in the response stream.
    D. The string "value=myAttributeValue" appears in the response stream.

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.