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

    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:

    objoctID. 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 62:

      Given that a web application consists of two HttpServlet classes, ServletA and ServletB, and the ServerletA.service method:

      20.

      String key = "com.example.data";

      21.

      session.setAttribute(key, "Hello");

      22.

      object value = session.getAttribute(key);

      23.

      Assume session is an HttpSession, and is not referenced anywhere else in ServletA. Which two changes, taken together, ensure that value is equal to "Hello" on line 23? (Choose two)

      A. ensure that the ServletB.service method is synchronized
      B. ensure that the ServletA.service method is synchronized
      C. ensure that ServletB synchronizes on the session object when setting session attributes
      D. enclose lines 21-22 in synchronized block: synchronized(this) ( session.setAttribute(key, "Hello"); value = session.getAttribute(key); )
      E. enclose lines 21-22 in synchronized block: synchronized(session) ( session.setAttribute(key, "Hello"); value = session.getAttribute(key); )

    • Question 63:

      Which is a valid value for the enum EmptyRoleSemantic in Javax.servlet.annotation.ServletSecurity?

      A. ADMIT
      B. PERMIT
      C. EXCLUDE
      D. DENYALL
      E. ALLOWALL

    • Question 64:

      Given the portion of a valid Java EE web application's directory structure:

      You want to know whether File1.html, File2.html, and/or File3.html is protected from direct access by your web client's browsers. What statement is true?

      A. All three files are directly accessible.
      B. Only File1.html is directly accessible.
      C. Only File2.html is directly accessible.
      D. Only File3.html is directly accessible.
      E. Only File1.html and File2.html are directly accessible.
      F. Only File1.html and File3.html are directly accessible.
      G. Only File2.html and File3.html are directly accessible.

    • Question 65:

      Which two actions protect a resource file from direct HTTP access within a web application? (Choose two)

      A. placing it in the /secure directory
      B. placing it in the /WEB-INF directory
      C. placing it in the /META-INF/secure directory
      D. creating a element within the deployment descriptor
      E. creating a element within the deployment descriptor

    • Question 66:

      Which three are true about the HttpServletRequestWrapper class? (Choose three.)

      A. The HttpServletRequestWrapper is an example of the Decorator pattern.
      B. The HttpServletRequestWrapper can be used to extend the functionality of a servlet request.
      C. A subclass of HttpServletRequestWrapper CANNOT modify the behavior of the getReader method.
      D. An HttpServletRequestWrapper may be used only by a class implement the javax.servlet.Filter interface.
      E. An HttpServletRequestWrapper CANNOT be used on the request passed to the RequestDispatcher.interface.
      F. An HttpServletRequestWrapper may modify the header of a request within an object implementing the javax.servlet.Filter interface.

    • Question 67:

      APIs for dynamically registering servlets and filters can be called at:

      A. Context initialization time
      B. Any time
      C. There is no way to dynamically register servlets and filters
      D. Context destruction time
      E. Injected into a servlet context

    • Question 68:

      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;

    • Question 69:

      In ServletContext.getNamedDispatcher(string arg0) arg0 is the

      A. url of a servlet relative to the ServletRequest
      B. url of a servlet relative to the Context
      C. name of a servlet
      D. absolute url to any servlet in any Context

    • Question 70:

      Which Java expression can be used to check whether the web container is currently configured to track sessions via URL rewriting?

      A. servletContext.getSessionCookiesConfiq() .isHttpOnly()
      B. servletContext.getSessionCookiesConfiq() .isSecure()
      C. servletContext.getDefaultSessionTrackingModes() .contains(SessionTrackingMode.URL)
      D. servletContext.getEffectiveSessionTrackingModes() .contains (SessionTrackingMode.URL)

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.