Download Java EE 7 Application Developer.1z0-900.ActualTests.2018-11-28.41q.vcex

Vendor: Oracle
Exam Code: 1z0-900
Exam Name: Java EE 7 Application Developer
Date: Nov 28, 2018
File Size: 192 KB
Downloads: 1

How to open VCEX files?

Files with VCEX extension can be opened by ProfExam Simulator.

Demo Questions

Question 1
You have been asked to implement internationalization in your JSF web application. 
Where do you configure the supported locales? 
  1. in the <f:view> tag of the Facelet page
  2. in the web.xml file
  3. in the faces-config.xml file
  4. in the src folder
Correct answer: A
Question 2
Given the code fragment:
  
Which code can be added to register both of these methods to receive BankEvent notifications only if an instance of BankActivityService is already instantiated in the current context?
  1. @Observes(notifyObserver=IF_EXISTS) on line 3 and line 6
  2. @Observes(during=IN_PROGRESS) on line 1
  3. @Observes(during=AFTER_COMPLETION) on line 1
  4. @Observes(notifyObserver=IF_EXISTS) on line 4 and line 7 before method parameter declaration
Correct answer: A
Explanation:
Reference https://docs.oracle.com/javaee/7/tutorial/cdi-adv005.htm
Reference https://docs.oracle.com/javaee/7/tutorial/cdi-adv005.htm
Question 3
Which code snippet prints the exception error message as part of the page output?
  1. <%= exception.message %>
  2. <c:out value=”${requestScope[‘javax.servlet.error.exception’]}”/>
  3. <% exception.getMessage(); %>
  4. <% System.out.println(e.getMessage()) %>
Correct answer: D
Explanation:
Reference: https://www.geeksforgeeks.org/3-different-ways-print-exception-messages-java/
Reference: https://www.geeksforgeeks.org/3-different-ways-print-exception-messages-java/
Question 4
Java EE’s support for WS-Security includes handling which two types of security credentials? (Choose two.)
  1. X.509 certificates
  2. SAML tokens
  3. OAuth Bearer tokens
  4. Two-factor authentication tokens
Correct answer: AB
Question 5
Given the code fragment:
  
Which method should be used on line 3 to enable default validation mechanism? 
  1. u.setProperty(String, Object)
  2. u.setProperty(Schema)
  3. u.setEventHandler(ValidationEventHandler)
  4. u.setAdapter(XmlAdapter)
Correct answer: D
Explanation:
Reference: https://docs.oracle.com/javaee/6/api/javax/xml/bind/Unmarshaller.html
Reference: https://docs.oracle.com/javaee/6/api/javax/xml/bind/Unmarshaller.html
Question 6
How do you specify a default error page in your web.xml file? 
  1. <on-error>
    <location>/general-error.html<location> 
    </on-error> 
  2. <error-page>
    <error-code>*</error-code> 
    <location>/general-error.html</location> 
    </error-page> 
  3. <on-error>
    <error-code>*</error-code> 
    <location>/general-error.html</location> 
    </on-error> 
  4. <error-page>
    <location>/general-error.html</location> 
    </error-page>
Correct answer: B
Explanation:
Reference: http://www.codejava.net/java-ee/servlet/how-to-handle-error-in-web-xml-for-java-web-applications
Reference: http://www.codejava.net/java-ee/servlet/how-to-handle-error-in-web-xml-for-java-web-applications
Question 7
Given the code fragment:
  
And 
  
Which two steps, when performed independently, enable the index.xhtml page to print the following text: The Id is 12345? (Choose two.)
  1. Replace line 2 with: @Inject public void setAcc(Account acc)
  2. Replace line 3 with: @Inject public Account getAcc()
  3. Replace line 1 with: @Inject private Account acc;
  4. Replace line 3 with: public @Inject Account getAcc()
  5. Replace line 1 with: private @Inject Account acc;
  6. Replace line 2 with: public void setAcc(@Inject Account acc)
Correct answer: DF
Question 8
Given:
  
How often does the submitted task run?
  1. need more details to determine
  2. once
  3. as many times as you like
  4. based on a schedule
Correct answer: A
Question 9
Given:
  
What code needs to be added to line 1 for MyMapper bean instances to be correctly passivated? 
  1. @Stateless @PassivationCapable
  2. @Stateless
  3. @Stateful @PassivationCapable
  4. @Stateful
Correct answer: D
Explanation:
Reference: https://docs.oracle.com/javaee/6/tutorial/doc/giplj.html#gipln
Reference: https://docs.oracle.com/javaee/6/tutorial/doc/giplj.html#gipln
Question 10
Which URL represents an invalid approach to pass a parameter to a REST resource? 
  1. <base-url>/Employees?value=1
  2. <base-url>/Employees&value=1
  3. <base-url>/Employees/1
  4. <base-url>/Employees;value=1
Correct answer: D
Explanation:
HOW TO OPEN VCE FILES

Use VCE Exam Simulator to open VCE files
Avanaset

HOW TO OPEN VCEX AND EXAM FILES

Use ProfExam Simulator to open VCEX and EXAM files
ProfExam Screen

ProfExam
ProfExam at a 20% markdown

You have the opportunity to purchase ProfExam at a 20% reduced price

Get Now!