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

    You are creating a servlet that generates stock market graphs. You want to provide the web browser with precise information about the amount of data being sent in the response stream. Which two HttpServletResponse methods will you use to provide this information? (Choose two.)

    A. response.setLength(numberOfBytes);
    B. response.setContentLength(numberOfBytes);
    C. response.setHeader("Length", numberOfBytes);
    D. response.setIntHeader("Length", numberOfBytes);
    E. response.setHeader("Content-Length", numberOfBytes);
    F. response.setIntHeader("Content-Length", numberOfBytes);

  • Question 82:

    You need to store a Java long primitive attribute, called customerOID, into the session scope. Which two code snippets allow you to insert this value into the session? (Choose two.)

    A. long customerOID = 47L;session.setAttribute("customerOID", new Long(customerOID));
    B. long customerOID = 47L;session.setLongAttribute("customerOID", new Long(customerOID));
    C. long customerOID = 47L;session.setAttribute("customerOID", customerOID);
    D. long customerOID = 47L;session.setNumericAttribute("customerOID", new Long(customerOID));
    E. long customerOID = 47L;session.setLongAttribute("customerOID", customerOID);
    F. long customerOID = 47L;session.setNumericAttribute("customerOID", customerOID);

  • Question 83:

    A developer wants to make a name attribute available to all servlets associated with a particular user, across multiple requests from that user, from the same browser instance. Which two provide this capability from within a tag handler? (Choose two.)

    A. pageContext.setAttribute("name", theValue);
    B. pageContext.setAttribute("name", getSession());
    C. pageContext.getRequest().setAttribute("name", theValue);
    D. pageContext.getSession().setAttribute("name", theValue);
    E. pageContext.setAttribute("name", theValue,PageContext.PAGE_SCOPE);
    F. pageContext.setAttribute("name", theValue,PageContext.SESSION_SCOPE);

  • Question 84:

    Click the Exhibit button.

    A servlet sets a session-scoped attribute product with an instance of com.example.Product and forwards to a JSP.

    Which two output the name of the product in the response? (Choose two.)

    A. ${product.name}

  • Question 85:

    Click the Exhibit button.

    The h:highlight tag renders its body, highlighting an arbitrary number of words, each of which is passed as an attribute (word1, word2, ...). For example, a JSP page can invoke the h:highlight tag as follows:

    11.

    12.

    high medium low

    13.

    Given that HighlightTag extends SimpleTagSupport, which three steps are necessary to implement the tag handler for the highlight tag? (Choose three).

    A. add a doTag method
    B. add a doStartTag method
    C. add a getter and setter for the color attribute
    D. create and implement a TagExtraInfo class
    E. implement the DynamicAttributes interface
    F. add a getter and setter for the word1 and word2 attributes

  • Question 86:

    The resource requested by the RequestDispatcher is available and implemented by the DestinationServlet.

    What is the result?

    A. An exception is thrown at runtime by SourceServlet.
    B. An exception is thrown at runtime by DestinationServlet.
    C. Only "hello from dest" appears in the response output stream.
    D. Both "hello from source" and "hello from dest" appear in the response output stream.

  • Question 87:

    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="answer59592" style="display: none"> E </div> <div class="button"> <input type="button" class="btn btn-primary answer-btn" value="SHOW ANSWERS" data-id="59592"> </div> </li> <li> <h4>Question 88: </h4> <p><p>Which is a benefit of precompiling a JSP page? </p><strong>A.</strong> It avoids initialization on the first request.<br/><strong>B.</strong> It provides the ability to debug runtime errors in the application.<br/><strong>C.</strong> It provides better performance on the first request for the JSP page.<br/><strong>D.</strong> It avoids execution of the _jspService method on the first request.</p> <div class="answer" id="answer59706" style="display: none"> <strong>C.</strong> It provides better performance on the first request for the JSP page. </div> <div class="button"> <input type="button" class="btn btn-primary answer-btn" value="SHOW ANSWERS" data-id="59706"> </div> </li> <li> <h4>Question 89: </h4> <p><p>A developer is designing the presentation tier for a web application that relies on a complex session bean. The session bean is still being developed and the APIs for it are NOT finalized. Any changes to the session bean API directly impacts the development of the presentation tier. Which design pattern provides a means to manage the uncertainty in the API? </p><strong>A.</strong> View Helper<br/><strong>B.</strong> Front Controller<br/><strong>C.</strong> Composite View<br/><strong>D.</strong> Intercepting Filter<br/><strong>E.</strong> Business Delegate<br/><strong>F.</strong> Chain of Responsibility</p> <div class="answer" id="answer59664" style="display: none"> <strong>E.</strong> Business Delegate </div> <div class="button"> <input type="button" class="btn btn-primary answer-btn" value="SHOW ANSWERS" data-id="59664"> </div> </li> <li> <h4>Question 90: </h4> <p><p>Given: </p><p>5.</p><p> public class MyTagHandler extends TagSupport { </p><p>6.</p><p> public int doStartTag() throws JspException { </p><p>7.</p><p> try { </p><p>8.</p><p> // insert code here </p><p>9.</p><p> } catch(Exception ex) { /* handle exception */ } </p><p>10.</p><p> return super.doStartTag(); </p><p>11.</p><p> } ... </p><p>42. } </p><p>Which code snippet, inserted at line 8, causes the value foo to be output? </p><strong>A.</strong> JspWriter w = pageContext.getOut();<br/><strong>B.</strong> print("foo");<br/><strong>C.</strong> JspWriter w = pageContext.getWriter();<br/><strong>D.</strong> print("foo");<br/><strong>E.</strong> JspWriter w = new JspWriter(pageContext.getWriter());<br/><strong>F.</strong> print("foo");<br/><strong>G.</strong> JspWriter w = new JspWriter(pageContext.getResponse());<br/><strong>H.</strong> print("foo");</p> <div class="answer" id="answer59575" style="display: none"> <strong>A.</strong> JspWriter w = pageContext.getOut(); </div> <div class="button"> <input type="button" class="btn btn-primary answer-btn" value="SHOW ANSWERS" data-id="59575"> </div> </li> </ul> </div> </div><!-- work-history --> <div class="text-center"> <ul class="pagination "><li><a href="/exam/1z0-858.html?page=8" rel="nofollow"><i class="fa fa-chevron-left"></i></a></li><li><a href="/exam/1z0-858.html">1</a></li><li><a href="/exam/1z0-858.html?page=2">2</a></li><li class="dian"><a>...</a></li><li><a href="/exam/1z0-858.html?page=8" rel="nofollow">8</a></li><li class="active"><a href="#">9</a></li><li><a href="/exam/1z0-858.html?page=10" rel="nofollow">10</a></li><li><a href="/exam/1z0-858.html?page=11" rel="nofollow">11</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=10" 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>