Download Oracle.1z0-900.Test4Prep.2019-05-30.43q.vcex

Download Exam

File Info

Exam Java EE 7 Application Developer
Number 1z0-900
File Name Oracle.1z0-900.Test4Prep.2019-05-30.43q.vcex
Size 1 MB
Posted May 30, 2019
Download Oracle.1z0-900.Test4Prep.2019-05-30.43q.vcex

How to open VCEX & EXAM Files?

Files with VCEX & EXAM extensions can be opened by ProfExam Simulator.

Purchase

Coupon: MASTEREXAM
With discount: 20%






Demo Questions

Question 1

You need to develop a chat application, which allows the display of emoticons and images together with text messages. 
How should you configure a WebSocket endpoints to receive both text and binary messages?


  1. Create two @onMessage methods in the same endpoint with appropriate parameter types.
  2. Define the @onMessage methods in your endpoint with Object as parameter and check the actual type in your code.
  3. You can achieve this only by creating separate WebSocket endpoints for each message type.
  4. Create two @onMessage methods, each with appropriate decoder attribute in the same endpoint.
Correct answer: D
Explanation:
Reference: https://abhirockzz.gitbooks.io/java-websocket-api-handbook/content/Receiving%20Messages.html
Reference: https://abhirockzz.gitbooks.io/java-websocket-api-handbook/content/Receiving%20Messages.html



Question 2

Which interface should you implement if you want to be alerted to the lifecycle events surrounding your task being executed by a ManagedExecutorService?


  1. the Runnable Interface
  2. the ManagedExecutorTask interface
  3. the TaskEventListener interface
  4. the ManagedTaskListener interface
Correct answer: D
Explanation:
Reference: https://github.com/javaee/concurrency-ee-spec/blob/master/api/src/main/java/javax/enterprise/concurrent/ManagedExecutorService.java
Reference: https://github.com/javaee/concurrency-ee-spec/blob/master/api/src/main/java/javax/enterprise/concurrent/ManagedExecutorService.java



Question 3

Given the code fragment:
  
Which URL triggers the invocation of the getEmployee () method?


  1. <base url>/Employees/89724
  2. <base url>/Employees/J6349
  3. <base url>/Employees/id:a7280
  4. <base url>/Employees/id/J6349
Correct answer: B



Question 4

What is true about Message-Driven Beans (MDBs)?


  1. MDBs can participate in transactions.
  2. MDBs are invoked synchronously.
  3. Each MDBs can process messages only from a single client.
  4. MDBs retain data caches between client calls.
Correct answer: A
Explanation:
Reference: https://docs.oracle.com/javaee/7/tutorial/ejb-intro003.htm
Reference: https://docs.oracle.com/javaee/7/tutorial/ejb-intro003.htm



Question 5

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 6

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 7

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 8

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 9

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



Question 10

Given the code fragments:
  
What code should you add to the body of the updateEmployee method in order to save pending changes to the database? 


  1. entityManager.merge(emp);
  2. Context. Ctx = new InitialContext();
    UserTransaction utx = (UserTransaction)ctx.lookup(“java:comp/UserTransaction”);
    utx.begin();
    entityManager.merge(emp);
    utx.commit();
  3. entityManager.lock(emp);
    EntityManager.merge(emp);
  4. entityManager.getTransaction().begin();
    entityManager.merge(emp);
    entityManager.getTransaction().commit();
Correct answer: B









CONNECT US

Facebook

Twitter

PROFEXAM WITH A 20% DISCOUNT

You can buy ProfExam with a 20% discount!



HOW TO OPEN VCEX FILES

Use ProfExam Simulator to open VCEX files