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

    Click the Exhibit button.

    Assuming the tag library in the exhibit is imported with the prefix stock, which custom tag invocation outputs the contents of the variable exposed by the quote tag?

    A. ${var}
    B. ${var}
    C. ${var}
    D. ${quote}

  • Question 62:

    Assume the scoped attribute priority does NOT yet exist. Which two create and set a new request- scoped attribute priority to the value "medium"? (Choose two.)

    A. ${priority = 'medium'}
    B. ${requestScope['priority'] = 'medium'}
    D. medium
    F. medium

  • Question 63:

    Which implicit object is used in a JSP page to retrieve values associated with entries in the deployment descriptor?

    A. config
    B. request
    C. session
    D. application

  • Question 64:

    hich two are true regarding a web application class loader? (Choose two.)

    A. A web application may override the web container's implementation classes.
    B. A web application running in a J2EE product may override classes in the javax.* namespace.
    C. A web application class loader may NOT override any classes in the java.* and javax.* namespaces.
    D. Resources in the WAR class directory or in any of the JAR files within the library directory may be accessed using the J2SE semantics of getResource.
    E. Resources in the WAR class directory or in any of the JAR files within the library directory CANNOT be accessed using the J2SE semantics of getResource.

  • Question 65:

    What is the purpose of session management?

    A. To manage the user's login and logout activities.
    B. To store information on the client-side between HTTP requests.
    C. To store information on the server-side between HTTP requests.
    D. To tell the web container to keep the HTTP connection alive so it can make subsequent requests without the delay of making the TCP connection.

  • Question 66:

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

    Your web site has many user-customizable features, for example font and color preferences on web pages. Your IT department has already built a subsystem for user preferences using the Java SE platform's lang.util.prefs package APIs, and you have been ordered to reuse this subsystem in your web application. You need to create an event listener that constructs the preferences factory and stores it in the application scope for later use. Furthermore, this factory requires that the URL to a database must be declared in the deployment descriptor like this:

    42.

    43.

    prefsDbURL

    44.

    45.

    jdbc:pointbase:server://dbhost:4747/prefsDB

    46.

    47.

    Which partial listener class will accomplish this goal?

    A. public class PrefsFactoryInitializer implements ContextListener {public void contextInitialized (ServletContextEvent e) {ServletContext ctx = e.getContext();String prefsURL = ctx.getParameter ("prefsDbURL");PreferencesFactory myFactory = makeFactory(prefsURL);ctx.putAttribute ("myPrefsFactory", myFactory);}// more code here}
    B. public class PrefsFactoryInitializer implements ServletContextListener {public void contextCreated (ServletContext ctx) {String prefsURL = ctx.getInitParameter("prefsDbURL");PreferencesFactory myFactory = makeFactory (prefsURL);ctx.setAttribute("myPrefsFactory", myFactory);}// more code here}
    C. public class PrefsFactoryInitializer implements ServletContextListener {public void contextInitialized (ServletContextEvent e) {ServletContext ctx = e.getServletContext();String prefsURL = ctx.getInitParameter ("prefsDbURL");PreferencesFactory myFactory = makeFactory (prefsURL);ctx.setAttribute("myPrefsFactory", myFactory);}// more code here}
    D. public class PrefsFactoryInitializer implements ContextListener {public void contextCreated (ServletContext ctx) {String prefsURL = ctx.getParameter("prefsDbURL");PreferencesFactory myFactory = makeFactory (prefsURL);ctx.putAttribute("myPrefsFactory", myFactory);}// more code here}

  • Question 68:

    Given this fragment in a servlet:

    23.

    if(req.isUserInRole("Admin")) {

    24.

    // do stuff

    25.

    }

    And the following fragment from the related Java EE deployment descriptor:

    812.

    813.

    Admin

    814.

    Administrator

    815.

    900.

    901.

    Admin

    902.

    Administrator

    903.

    What is the result?

    A. Line 24 can never be reached.
    B. The deployment descriptor is NOT valid.
    C. If line 24 executes, the user's role will be Admin.
    D. If line 24 executes, the user's role will be Administrator.
    E. If line 24 executes the user's role will NOT be predictable.

  • Question 69:

    Which two are valid and equivalent? (Choose two.)

    C. int i;
    D. int i;
    E. int i;

  • Question 70:

    For manageability purposes, you have been told to add a "count" instance variable to a critical JSP Document so that a JMX MBean can track how frequent this JSP is being invoked. Which JSP code snippet must you use to declare this instance variable in the JSP Document?

    A. int count = 0;
    C. int count = 0;
    D. int count = 0;

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.