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

    A developer is designing a web application that must support multiple interfaces, including:

    an XML web service for B2B HTML for web-based clients WML for wireless customers

    Which design pattern provides a solution for this problem?

    A. Session Facade
    B. Business Delegate
    C. Data Access Object
    D. Model-View-Controller
    E. Chain of Responsibility

  • Question 32:

    A developer is designing the presentation tier for a web application which requires a centralized request handling to complete common processing required by each request. Which design pattern provides a solution to this problem?

    A. Remote Proxy
    B. Front Controller
    C. Service Activator
    D. Intercepting Filter
    E. Business Delegate
    F. Data Access Object

  • Question 33:

    Given a Filter class definition with this method:

    21.

    public void doFilter(ServletRequest request,

    22.

    ServletResponse response,

    23.

    FilterChain chain)

    24.

    throws ServletException, IOException {

    25.

    // insert code here

    26.

    }

    Which should you insert at line 25 to properly invoke the next filter in the chain, or the target servlet if there are no more filters?

    A. chain.forward(request, response);
    B. chain.doFilter(request, response);
    C. request.forward(request, response);
    D. request.doFilter(request, response);

  • Question 34:

    In your web application, you need to execute a block of code whenever the session object is first created. Which design will accomplish this goal?

    A. Create an HttpSessionListener class and implement the sessionInitialized method with that block of code.
    B. Create an HttpSessionActivationListener class and implement the sessionCreated method with that block of code.
    C. Create a Filter class, call the getSession(false) method, and if the result was null, then execute that block of code.
    D. Create an HttpSessionListener class and implement the sessionCreated method with that block of code.
    E. Create a Filter class, call the getSession(true) method, and if the result was NOT null, then execute that block of code.

  • Question 35:

    Which two are true about the JSTL core iteration custom tags? (Choose two.)

    A. It may iterate over arrays, collections, maps, and strings.
    B. The body of the tag may contain EL code, but not scripting code.
    C. When looping over collections, a loop status object may be used in the tag body.
    D. It may iterate over a map, but only the key of the mapping may be used in the tag body.
    E. When looping over integers (for example begin='1' end='10'), a loop status object may not be used in the tag body.

  • Question 36:

    Which two statements are true about the security-related tags in a valid Java EE deployment descriptor? (Choose two.)

    A. Every tag must have at least one tag.
    B. A tag can have many tags.
    C. A given tag can apply to only one tag.
    D. A given tag can contain from zero to many tags.
    E. It is possible to construct a valid tag such that, for a given resource, no user roles can access that resource.

  • Question 37:

    Given the web application deployment descriptor elements:

    11.

    12.

    ParamAdder

    13.

    com.example.ParamAdder

    14.

    ...

    24.

    25.

    ParamAdder

    26.

    MyServlet

    27.

    28.

    Which element, inserted at line 27, causes the ParamAdder filter to be applied when MyServlet is invoked by another servlet using the RequestDispatcher.include method?

    B. INCLUDE
    C. include
    D. INCLUDE
    E. include

  • Question 38:

    Your web application views all have the same header, which includes the tag in the <head> element of the rendered HTML. You have decided to remove this redundant HTML code from your JSPs and put it into a single JSP called / WEB-INF/jsp/header.jsp. However, the title of each page is unique, so you have decided to use a variable called pageTitle to parameterize this in the header JSP, like this: </p><p>10. <title>${param.pageTitle}<title> </p><p>Which JSP code snippet should you use in your main view JSPs to insert the header and pass the pageTitle variable? </p><strong>A.</strong> ${pageTitle='Welcome Page'}<br/><strong>B.</strong> ${pageTitle='Welcome Page'}<br/><strong>C.</strong> ${pageTitle='Welcome Page'}</p> <div class="answer" id="answer59617" style="display: none"> E </div> <div class="button"> <input type="button" class="btn btn-primary answer-btn" value="SHOW ANSWERS" data-id="59617"> </div> </li> <li> <h4>Question 39: </h4> <p><p>Given this fragment in a servlet: </p><p>23.</p><p> if(req.isUserInRole("Admin")) { </p><p>24.</p><p> // do stuff </p><p>25.</p><p> } </p><p>And the following fragment from the related Java EE deployment descriptor: </p><p>812.</p><p> <security-role-ref> </p><p>813.</p><p> <role-name>Admin</role-name> </p><p>814.</p><p> <role-link>Administrator</role-link> </p><p>815.</p><p> </security-role-ref> </p><p>900.</p><p> <security-role> </p><p>901.</p><p> <role-name>Admin</role-name> </p><p>902.</p><p> <role-name>Administrator</role-name> </p><p>903.</p><p> </security-role> </p><p>What is the result? </p><strong>A.</strong> Line 24 can never be reached.<br/><strong>B.</strong> The deployment descriptor is NOT valid.<br/><strong>C.</strong> If line 24 executes, the user's role will be Admin.<br/><strong>D.</strong> If line 24 executes, the user's role will be Administrator.<br/><strong>E.</strong> If line 24 executes the user's role will NOT be predictable.</p> <div class="answer" id="answer59499" style="display: none"> <strong>D.</strong> If line 24 executes, the user's role will be Administrator. </div> <div class="button"> <input type="button" class="btn btn-primary answer-btn" value="SHOW ANSWERS" data-id="59499"> </div> </li> <li> <h4>Question 40: </h4> <p><p>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 Java SE'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 stores the user's Preference object when an HTTP session is created. Also, note that user identification information is stored in an HTTP cookie. </p><p>Which partial listener class can accomplish this goal? </p><strong>A.</strong> public class UserPrefLoader implements HttpSessionListener {public void sessionCreated (HttpSessionEvent se) {MyPrefsFactory myFactory = (MyPrefsFactory) se.getServletContext ().getAttribute("myPrefsFactory");User user = getUserFromCookie(se);myFactory.setThreadLocalUser (user);Preferences userPrefs = myFactory.userRoot();se.getSession().setAttribute("prefs", userPrefs);}// more code here}<br/><strong>B.</strong> public class UserPrefLoader implements SessionListener {public void sessionCreated(SessionEvent se) {MyPrefsFactory myFactory = (MyPrefsFactory) se.getContext().getAttribute("myPrefsFactory");User user = getUserFromCookie (se);myFactory.setThreadLocalUser(user);Preferences userPrefs = myFactory.userRoot ();se.getSession().addAttribute("prefs", userPrefs);}// more code here}<br/><strong>C.</strong> public class UserPrefLoader implements HttpSessionListener {public void sessionInitialized (HttpSessionEvent se) {MyPrefsFactory myFactory = (MyPrefsFactory) se.getServletContext ().getAttribute("myPrefsFactory");User user = getUserFromCookie(se);myFactory.setThreadLocalUser (user);Preferences userPrefs = myFactory.userRoot();se.getHttpSession().setAttribute("prefs", userPrefs);}// more code here}<br/><strong>D.</strong> public class UserPrefLoader implements SessionListener {public void sessionInitialized(SessionEvent se) {MyPrefsFactory myFactory = (MyPrefsFactory) se.getServletContext().getAttribute ("myPrefsFactory");User user = getUserFromCookie(se);myFactory.setThreadLocalUser (user);Preferences userPrefs = myFactory.userRoot();se.getSession().addAttribute("prefs", userPrefs);}// more code here}</p> <div class="answer" id="answer59588" style="display: none"> <strong>A.</strong> public class UserPrefLoader implements HttpSessionListener {public void sessionCreated (HttpSessionEvent se) {MyPrefsFactory myFactory = (MyPrefsFactory) se.getServletContext ().getAttribute("myPrefsFactory");User user = getUserFromCookie(se);myFactory.setThreadLocalUser (user);Preferences userPrefs = myFactory.userRoot();se.getSession().setAttribute("prefs", userPrefs);}// more code here} </div> <div class="button"> <input type="button" class="btn btn-primary answer-btn" value="SHOW ANSWERS" data-id="59588"> </div> </li> </ul> </div> </div><!-- work-history --> <div class="text-center"> <ul class="pagination "><li><a href="/exam/1z0-858.html?page=3" rel="nofollow"><i class="fa fa-chevron-left"></i></a></li><li><a href="/exam/1z0-858.html" rel="nofollow">1</a></li><li><a href="/exam/1z0-858.html?page=2" rel="nofollow">2</a></li><li><a href="/exam/1z0-858.html?page=3" rel="nofollow">3</a></li><li class="active"><a href="#">4</a></li><li><a href="/exam/1z0-858.html?page=5" rel="nofollow">5</a></li><li class="dian"><a>...</a></li><li><a href="/exam/1z0-858.html?page=27" rel="nofollow">27</a></li><li><a href="/exam/1z0-858.html?page=28" rel="nofollow">28</a></li><li><a href="/exam/1z0-858.html?page=5" rel="nofollow"><i class="fa fa-chevron-right"></i></a></li></ul> </div> <div class="special-qualification: section"> <div class="icons"> <i class="fa fa-thumbs-o-up" aria-hidden="true"></i> </div> <div class="personal-info"> <h3>Related Exams:</h3> <ul class="address"> <li> <h5><a href="https://www.vcedump.com/1z0-020.html">1Z0-020</a> </h5> <a href="https://www.vcedump.com/1z0-020.html" style="color: #2d3038">Oracle8i: New Features for Administrators</a> </li> <li> <h5><a href="https://www.vcedump.com/1z0-023.html">1Z0-023</a> </h5> <a href="https://www.vcedump.com/1z0-023.html" style="color: #2d3038">Architecture and Administration</a> </li> <li> <h5><a href="https://www.vcedump.com/1z0-024.html">1Z0-024</a> </h5> <a href="https://www.vcedump.com/1z0-024.html" style="color: #2d3038">Performance Tuning</a> </li> <li> <h5><a href="https://www.vcedump.com/1z0-025.html">1Z0-025</a> </h5> <a href="https://www.vcedump.com/1z0-025.html" style="color: #2d3038">Backup and Recovery</a> </li> <li> <h5><a href="https://www.vcedump.com/1z0-026.html">1Z0-026</a> </h5> <a href="https://www.vcedump.com/1z0-026.html" style="color: #2d3038">Network Administration</a> </li> <li> <h5><a href="https://www.vcedump.com/1z0-034.html">1Z0-034</a> </h5> <a href="https://www.vcedump.com/1z0-034.html" style="color: #2d3038">Upgrade Oracle9i/10g OCA to Oracle Database OCP</a> </li> <li> <h5><a href="https://www.vcedump.com/1z0-036.html">1Z0-036</a> </h5> <a href="https://www.vcedump.com/1z0-036.html" style="color: #2d3038">Managing Oracle9i on Linux</a> </li> <li> <h5><a href="https://www.vcedump.com/1z0-041.html">1Z0-041</a> </h5> <a href="https://www.vcedump.com/1z0-041.html" style="color: #2d3038">Oracle Database 10g: DBA Assessment</a> </li> <li> <h5><a href="https://www.vcedump.com/1z0-052.html">1Z0-052</a> </h5> <a href="https://www.vcedump.com/1z0-052.html" style="color: #2d3038">Oracle Database 11g: Administration Workshop I</a> </li> <li> <h5><a href="https://www.vcedump.com/1z0-053.html">1Z0-053</a> </h5> <a href="https://www.vcedump.com/1z0-053.html" style="color: #2d3038">Oracle Database 11g: Administration II</a> </li> </ul> </div> </div><!-- educational-background --> <div class="declaration section"> <div class="icons"> <i class="fa fa-hand-peace-o" aria-hidden="true"></i> </div> <div class="declaration-info"> <h3>Tips on How to Prepare for the Exams</h3> <p>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. </p> </div> </div><!-- career-objective --> </div><!-- resume-content --> </div><!-- container --> </section><!-- ad-profile-page --> <!-- Security: Anti-theft JavaScript --> <script type="text/javascript"> (function() { 'use strict'; // Disable right-click document.addEventListener('contextmenu', function(e) { e.preventDefault(); return false; }); // Disable keyboard shortcuts document.addEventListener('keydown', function(e) { // F12 if (e.keyCode === 123) { e.preventDefault(); return false; } // Ctrl+Shift+I (Chrome DevTools) if (e.ctrlKey && e.shiftKey && e.keyCode === 73) { e.preventDefault(); return false; } // Ctrl+Shift+J (Chrome Console) if (e.ctrlKey && e.shiftKey && e.keyCode === 74) { e.preventDefault(); return false; } // Ctrl+Shift+C (Chrome Inspect) if (e.ctrlKey && e.shiftKey && e.keyCode === 67) { e.preventDefault(); return false; } // Ctrl+U (View Source) if (e.ctrlKey && e.keyCode === 85) { e.preventDefault(); return false; } // Ctrl+S (Save Page) if (e.ctrlKey && e.keyCode === 83) { e.preventDefault(); return false; } // Ctrl+P (Print) if (e.ctrlKey && e.keyCode === 80) { e.preventDefault(); return false; } }); // Disable print window.addEventListener('beforeprint', function(e) { e.preventDefault(); alert('Printing is disabled for this protected content.'); return false; }); // Blur detection (screen recording protection) var blurOverlay = null; window.addEventListener('blur', function() { if (!blurOverlay) { blurOverlay = document.createElement('div'); blurOverlay.style.cssText = 'position:fixed;top:0;left:0;width:100%;height:100%;background:rgba(255,255,255,0.95);z-index:99999;display:flex;align-items:center;justify-content:center;font-size:24px;'; blurOverlay.textContent = 'Please focus on this window to continue'; document.body.appendChild(blurOverlay); } }); window.addEventListener('focus', function() { if (blurOverlay) { document.body.removeChild(blurOverlay); blurOverlay = null; } }); // Prevent iframe embedding if (window.top !== window.self) { window.top.location = window.self.location; } })(); </script> <script type="text/javascript" src="/js/UAAAAAOCOyHhADO0j.js"></script> <style> .footer-widget ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; padding: 0; margin: 0; list-style: none; } .footer-widget ul li { margin-bottom: 0 !important; } .footer-widget ul li a { display: inline-block !important; padding: 0 15px; border-right: 1px solid #ddd; } .footer-widget ul li:last-child a { border-right: none; } </style> <footer id="footer" class="clearfix"> <!-- footer-top --> <section class="footer-top clearfix"> <div class="container"> <div class="row"> <!-- footer-widget --> <div class="col-sm-12"> <div class="footer-widget"> <ul> <li><a href="/faqs.html">FAQs</a></li> <li><a href="/how-to-buy.html">How to Buy</a></li> <li><a href="/pass-guarantee.html">Guarantee</a></li> <li><a href="/contact-us.html">Contact Us</a></li> <li><a href="/about-us.html">About Us</a></li> <li><a href="/payment.html">Payment</a></li> <li><a href="/privacy.html">Privacy</a></li> <li><a href="/terms-and-conditions.html">Terms & Conditions</a></li> </ul> </div> </div><!-- footer-widget --> </div><!-- row --> </div><!-- container --> </section><!-- footer-top --> <div class="footer-bottom clearfix text-center"> <div class="container"> <p>Copyright © <a href="/">VCEDUMP.COM</a> 2026</p> </div> </div><!-- footer-bottom --> </footer><!-- footer --> <!-- JS --> <script src="/js/bootstrap.min.js"></script> <script src="/js/price-range.js"></script> <script src="/js/main.js"></script> <script src="/js/switcher.js"></script> <!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-MD8L8FYY2G"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-MD8L8FYY2G'); </script> </body> </html>