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

    Which two statements about tag files are true? (Choose two.)

    A. Classic tag handlers and tag files CANNOT reside in the same tag library.
    B. A file named foo.tag, located in /WEB-INF/tags/bar, is recognized as a tag file by the container.
    C. A file named foo.tag, bundled in a JAR file but NOT defined in a TLD, triggers a container translation error.
    D. A file named foo.tag, located in a web application's root directory, is recognized as a tag file by the container.
    E. If files foo1.tag and foo2.tag both reside in /WEB-INF/tags/bar, the container will consider them part of the same tag library.

  • Question 72:

    Your web application uses a simple architecture in which servlets handle requests and then forward to a JSP using a request dispatcher. You need to pass information calculated by the servlet to the JSP; furthermore, that JSP uses a custom tag and must also process this information. This information must NOT be accessible to any other servlet, JSP or session in the webapp. How can you accomplish this goal?

    A. Store the data in a public instance variable in the servlet.
    B. Add an attribute to the request object before using the request dispatcher.
    C. Add an attribute to the context object before using the request dispatcher.
    D. This CANNOT be done as the tag handler has no means to extract this data.

  • Question 73:

    You are creating a JSP page to display a collection of data. This data can be displayed in several different ways so the architect on your project decided to create a generic servlet that generates a comma-delimited string so that various

    pages can render the data in different ways. This servlet takes on request parameter:

    objectID. Assume that this servlet is mapped to the URL pattern: /WEB- INF/data.

    In the JSP you are creating, you need to split this string into its elements separated by commas and generate an HTML

      list from the data.

      Which JSTL code snippet will accomplish this goal?

      A. $ {item}
      B. $ {item}
      C. $ {item}
      D. $ {item}

    • Question 74:

      Which JSTL code snippet produces the output "big number" when X is greater than 42, but outputs "small number" in all other cases?

      A. big numbersmall number
      B. big numbersmall number
      C. big numbersmall number
      D. big numbersmall number
      E. big numbersmall number

    • Question 75:

      One of the use cases in your web application uses many session-scoped attributes. At the end of the use case, you want to clear out this set of attributes from the session object. Assume that this static variable holds this set of attribute names:

      201.

      private static final Set USE_CASE_ATTRS;

      202.

      static {

      203.

      USE_CASE_ATTRS.add("customerOID");

      204.

      USE_CASE_ATTRS.add("custMgrBean");

      205.

      USE_CASE_ATTRS.add("orderOID");

      206.

      USE_CASE_ATTRS.add("orderMgrBean");

      207.

      }

      Which code snippet deletes these attributes from the session object?

      A. session.removeAll(USE_CASE_ATTRS);
      B. for ( String attr : USE_CASE_ATTRS ) {session.remove(attr);}
      C. for ( String attr : USE_CASE_ATTRS ) {session.removeAttribute(attr);}
      D. for ( String attr : USE_CASE_ATTRS ) {session.deleteAttribute(attr);}
      E. session.deleteAllAttributes(USE_CASE_ATTRS);

    • Question 76:

      Which security mechanism uses the concept of a realm?

      A. authorization
      B. data integrity
      C. confidentiality
      D. authentication

    • Question 77:

      After a merger with another small business, your company has inherited a legacy WAR file but the original source files were lost. After reading the documentation of that web application, you discover that the WAR file contains a useful tag library that you want to reuse in your own webapp packaged as a WAR file.

      What do you need to do to reuse this tag library?

      A. Simply rename the legacy WAR file as a JAR file and place it in your webapp's library directory.
      B. Unpack the legacy WAR file, move the TLD file to the META-INF directory, repackage the whole thing as a JAR file, and place that JAR file in your webapp's library directory.
      C. Unpack the legacy WAR file, move the TLD file to the META-INF directory, move the class files to the top-level directory, repackage the whole thing as a JAR file, and place that JAR file in your webapp's library directory.
      D. Unpack the legacy WAR file, move the TLD file to the META-INF directory, move the class files to the top-level directory, repackage the WAR, and place that WAR file in your webapp's WEB-INF directory.

    • Question 78:

      Given:

      1.

      <% int[] nums = {42,420,4200};

      2.

      request.setAttribute("foo", nums); %>

      3.

      ${5 + 3 lt 6}

      4.

      ${requestScope['foo'][0] ne 10 div 0}

      5.

      ${10 div 0}

      What is the result?

      A. true true
      B. false true
      C. false true 0
      D. true true Infinity
      E. false true Infinity
      F. An exception is thrown.
      G. Compilation or translation fails.

    • Question 79:

      You are designing an n-tier Java EE application. You have already decided that some of your JSPs will need to get data from a Customer entity bean. You are trying to decide whether to use a Customer stub object or a Transfer Object. Which two statements are true? (Choose two.)

      A. The stub will increase network traffic.
      B. The Transfer Object will decrease data staleness.
      C. The stub will increase the logic necessary in the JSPs.
      D. In both cases, the JSPs can use EL expressions to get data.
      E. Only the Transfer Object will need to use a Business Delegate.
      F. Using the stub approach allows you to design the application without using a Service Locator.

    • Question 80:

      A session-scoped attribute is stored by a servlet, and then that servlet forwards to a JSP page. Which three jsp:useBean attributes must be used to access this attribute in the JSP page? (Choose three.)

      A. id
      B. name
      C. bean
      D. type
      E. scope
      F. beanName

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.