1Z0-899 Exam Details

  • Exam Code
    :1Z0-899
  • Exam Name
    :Java EE 6 Web Component Developer Certified Expert
  • Certification
    :Oracle Certifications
  • Vendor
    :Oracle
  • Total Questions
    :108 Q&As
  • Last Updated
    :Dec 07, 2021

Oracle 1Z0-899 Online Questions & Answers

  • Question 41:

    Given:

    1.

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

    2.

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

    3.

    ${5 + 3 It 6}

    4.

    S(requestScope['foo'][0] ne 10 div0>

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

    You have a use in your web application that adds several session-scoped attributes. At the end of the use case, one of these objects, the manage attribute, is removed and then it needs to decide which of the other session-scoped attributes to remove.

    How can this goal be accomplished?

    A. The object of the manager attribute should implement the HttpSessionBindingListener and it should call the removeAttribute method on the appropriate session attributes.
    B. The object of the manager attribute should implement the HttpSessionListenar and it should call the removeAttribute method on the appropriate session attributes.
    C. The object of the manager attribute should implement the HttpSessionBindingListener rind it should call the deleteAttribute method on the appropriate session attributes.
    D. The object of the manager attribute should implement the HttpsessionListener and it should call the deleteAttribute method on the appropriate session attributes.

  • Question 43:

    You are building a dating service web site. Part of the form to submit a client's profile is a group of radio buttons for the person's hobbies:

    20.

    Hiking

    21.

    Sking

    22.

    SCUBA

    23.

    >

    After the user submits this form, a confirmation screen is displayed with these hobbies listed. Assume that an application-scoped hobbies, holds a map between the hobby enumerated type and the display name.

    Which EL code snippet will display Nth element of the user's selected hobbles?

    A. ${hobbies [hobbyEnum[N]}
    B. ${hobbies [paramValues.hobbyEnum[N]]}
    C. ${hobbies [paramValues @ `hobbyEnum' @N]
    D. ${hobbies.get(paramValues.hobbyEnum[N]) }
    E. ${hobbies [paramValues.hobbyEnum.get(N)] }

  • Question 44:

    When using the @WebListener annotation, the class on which the annotation is applied to must also implement at least one o the following interfaces (Choose two):

    A. RequestListener
    B. AttributeListener
    C. ServletContextListener
    D. HttpSessionListener
    E. SessionAttributeListener
    F. AsyncListener

  • Question 45:

    Given the element from the web application deployment descriptor:

    /main/page1.jsp true

    And given that /main/page1.jsp contains:

    <% int i = 12; %>

    <%= i %>

    What is the result?

    B. l2
    C. The JSP fails to execute.
    D. < b>

  • Question 46:

    View the Exhibit.

    Which two technologies would be suitable for use as Front Controller elements? (Choose two)

    A. JSP
    B. Servlet
    C. Filter
    D. POJO
    E. Custom Tag

  • Question 47:

    Which java code snippet roles "MANAGER" and "EMPLOYEE" in a given application?

    A. @DeclareRoles({ "MANAGER", "EMPLOYEE" }) public class MyServlet extends HttpServlet {}
    B. @SecurityRoles({ "MANAGER", "EMPLOYEE" }) public class MyServlet extends HttpServlet {}
    C. @DeclareRoles("MANAGER") @DeclareRoles("EMPLOYEE") public class MyServlet extends HttpServlet {}
    D. @DeclareRole("MANAGER") @DeclareRole("EMPLOYEE") public class MyServlet extends HttpServlet {}

  • Question 48:

    Which describes a trigger that causes a call to an AsyncListener?

    A. Completion of processing
    B. Receipt of a new request from the same client
    C. Addition of a new filter to the processing stream for this request
    D. Completion of each timer interval

  • Question 49:

    To add a servlet to a context that has not been declared either via annotation or via the descriptor, during context initialization time the following API can be used (Choose three.)

    A. servletContext.addServlet("myServletName", "MyServlet");
    B. servletContext.addServlet( ()getClass().getClassLoader().getClassLoader().loaderClass("MyServlet"));
    C. servletContext.addServlet(myServlet);
    D. servletContext.addServlet( ("myServletName", )gerClass().getClassLoader ().loaderClass("myServlet"));
    E. servletContext.addServlet("myServletName", MyServlet);

  • Question 50:

    To take advantage of the capabilities of modern browsers that use web standards, such as XHTML and CSS, your web application is being converted from simple JSP pages to JSP Document format. However, one of your JSPs, /scripts/ screenFunctions.jsp, generates a JavaScript file. This file is included in several web forms to create screen-specific validation functions and are included in these pages with the following statement:

    Which JSP code snippet declares that this JSP Document is a JavaScript file?

    E. No declaration is needed because the web form XHTML page already declares the MIME type of the / scripts/screenFunctions.jsp file in the tag.

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-899 exam preparations and Oracle certification application, do not hesitate to visit our Vcedump.com to find your solutions here.