We provide real 1Z0-899 exam questions and answers braindumps in two formats. Download PDF & Practice Tests. Pass Oracle 1Z0-899 Exam quickly & easily. The 1Z0-899 PDF type is available for reading and printing. You can print more and practice many times. With the help of our Oracle 1Z0-899 dumps pdf and vce product and material, you can easily pass the 1Z0-899 exam.


♥♥ 2021 NEW RECOMMEND ♥♥

Free VCE & PDF File for Oracle 1Z0-899 Real Exam (Full Version!)

★ Pass on Your First TRY ★ 100% Money Back Guarantee ★ Realistic Practice Exam Questions

Free Instant Download NEW 1Z0-899 Exam Dumps (PDF & VCE):
Available on: http://www.surepassexam.com/1Z0-899-exam-dumps.html

Q1. Which EL expression returns true if no session has been established with current client? 

A. ${not(pageContext.session)} 

B. ${not(requestScope.session)} 

C. ${requestScope.sessions.this} 

D. ${sessionScope.empty} 

Answer:


Q2. Given the fragment from Java EE deployment descriptor: 

341. 

<error-page> 


Q3.  

String sessionID = request.getParameter("sessionID"); 


Q4.  

<security-role> 


Q5. Which element of a web application deployment descriptor <web-resource-collection> element is used to specify a HTTP method to which the corresponding <security-constraint> will not apply? 

A. <exclude-http-method> 

B. <neglect-http-method> 

C. <http-method-omission> 

D. <http-method-excluded> 

E. <exceptional-http-method> 

Answer:


Q6. 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( (<Class extends Servlet>)getClass().getClassLoader().getClassLoader().loaderClass(“MyServlet”)); 

C. servletContext.addServlet(myServlet); 

D. servletContext.addServlet( (“myServletName”, <Class extends Servlet>)gerClass().getClassLoader().loaderClass(“myServlet”)); 

E. servletContext.addServlet(“myServletName”, MyServlet); 

Answer: ADE 


Q7. Given a jar file packaged with three web fragments with names X, Y and Z respectively. 

Which of the following deployment descriptor, web.xml, snippets correspond to the web fragment processing orders of X, Y, Z? 

(i) <absolute-ordering> 

<name>X</name> 

<name>Y</name> 

<name>Z</name> 

</absolute-ordering> 

(ii) <absolute-ordering> <name>X</name> <name>Y</name> </absolute-ordering> 

(iii) <absolute-ordering> </others> <name>Y</name> <name>Z</name> </absolute-ordering> 

(iv) <absolute-ordering> <name>X</name> </others> <name>Z</name> </absolute-ordering> 

(v) <absolute-ordering> <name>X</name> <name>Y</name> </others> </absolute-ordering> 

A. (i) only 

B. (i) and (ii) 

C. (i) and (iv) 

D. (i), (iii), (iv) and (v) 

Answer:


Q8. Your web application requires the ability to load and remove web files dynamically to the web 

container’s file system? 

Which two HTTP methods are used to perform these actions? (Choose two) 

A. PUT 

B. POST 

C. SEND 

D. DELETE 

E. REMOVE 

F. DESTROY 

Answer: AD


Q9. 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); 

Answer: DF 


Q10.

 session.setAttribute(key, “Hello”);