Download Oracle.1z0-900.TestKing.2019-07-24.65q.vcex

Download Exam

File Info

Exam Java EE 7 Application Developer
Number 1z0-900
File Name Oracle.1z0-900.TestKing.2019-07-24.65q.vcex
Size 1 MB
Posted Jul 24, 2019
Download Oracle.1z0-900.TestKing.2019-07-24.65q.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 two capabilities are provided by the Java Authentication and Authorization Services (JAAS) API? (Choose two.)


  1. protecting data from unauthorized viewing by using encryption
  2. verifying that a user is allowed to perform an action
  3. ensuring that data is not modified in transit
  4. verifying identity claims from users
Correct answer: BC
Explanation:
Reference: https://docs.oracle.com/javase/8/docs/technotes/guides/security/jaas/JAASRefGuide.html
Reference: https://docs.oracle.com/javase/8/docs/technotes/guides/security/jaas/JAASRefGuide.html



Question 3

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 4

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 5

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 6

Given the code fragment from a Facelet page:
 
  
 
On Line 1, you ae asked to insert a search box that displays the text “Search Here” via a placeholder. 
Assume searchMB is a valid Managed Bean. 
Which two options enable you to create a search box with a placeholder attribute on Line 1? (Choose two.) 


  1. <h:inputText value=“#(searchMB.query)”>
    <f:param name=“placeholder” value=“Search Here”/>
    </h:inputText>
  2. <h:inputText value=“#(searchMB.query)” placeholder=“Search here”/>
  3. <input jsf:id=“search” placeholder=“Search here” jsf:value=“# (searchMB.query)”></input>
  4. <h:inputText pt:placeholder=“Search Here” value=“#(searchMB.query)”/>
  5. <input id=“search” jsf:placeholder=“Search Here” value=“$(searchMB.query)”></input>
Correct answer: CE



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

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 9

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 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? 
entityManager.merge(emp);


  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